@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Cormorant+Garamond:wght@600;700&display=swap");

:root {
  --paper: #f4ecdc;
  --paper-deep: #e8d5b8;
  --ink: #201714;
  --muted: #64574e;
  --line: rgba(32, 23, 20, 0.12);
  --line-strong: rgba(32, 23, 20, 0.2);
  --card: rgba(255, 251, 246, 0.9);
  --card-solid: #fffaf4;
  --accent: #b44d2a;
  --accent-deep: #7f3019;
  --accent-soft: rgba(180, 77, 42, 0.1);
  --shadow: 0 22px 64px rgba(67, 43, 27, 0.12);
  --card-shadow: 0 16px 40px rgba(61, 43, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(180, 77, 42, 0.1), transparent 25%),
    radial-gradient(circle at 84% 10%, rgba(153, 128, 96, 0.12), transparent 22%),
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06));
  mix-blend-mode: multiply;
  z-index: -1;
}

body.page-home {
  background: linear-gradient(180deg, #efe2cd 0%, var(--paper) 42%, #f7f3ea 100%);
}

body.page-card {
  background: linear-gradient(180deg, #f0e4d1 0%, #f8f3ea 38%, #fcfaf5 100%);
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(244, 236, 220, 0.78);
  border-bottom: 1px solid rgba(32, 23, 20, 0.08);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #cc6b42 100%);
  color: #fff9f3;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 800;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.home-main {
  padding-top: 18px;
}

.hero {
  padding: 24px 0 22px;
}

.hero-card,
.section-card,
.card,
.note-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card,
.card {
  padding: 30px;
}

.hero-card::before,
.section-card::before,
.card::before,
.note-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.42), transparent 55%);
  pointer-events: none;
}

.topbar {
  margin-bottom: 20px;
}

.eyebrow,
.page-tag,
.section-kicker,
.note-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(180, 77, 42, 0.16);
  border-radius: 999px;
  background: rgba(255, 247, 240, 0.88);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before,
.page-tag::before,
.section-kicker::before,
.note-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(180, 77, 42, 0.1);
}

.hero-grid.simple {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-side {
  padding: 22px;
}

h1,
.section-card h2,
.card h1,
.card h2,
.note-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.02;
}

.lead,
.page-intro,
.note-card p,
.section-card p,
.card p,
.card li {
  color: var(--muted);
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.78;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 160ms ease;
}

.button:hover,
.button-secondary:hover,
.site-nav a:hover {
  transform: translateY(-1px);
}

.button {
  color: #fff9f3;
  background: linear-gradient(135deg, var(--accent) 0%, #cb6a42 100%);
  box-shadow: 0 14px 28px rgba(180, 77, 42, 0.2);
}

.button-secondary {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.54);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 36px;
}

.section-card.clean,
.clean-card {
  padding: 26px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.feature-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-top: 1px solid rgba(32, 23, 20, 0.08);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent) 0%, #da7d55 100%);
  box-shadow: 0 0 0 4px rgba(180, 77, 42, 0.08);
}

.feature-list li:first-child { border-top: 0; }
.feature-list.compact li { padding-top: 10px; padding-bottom: 10px; }

.info-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(32, 23, 20, 0.08);
}

.info-list div:first-child { border-top: 0; padding-top: 0; }
.info-list dt { color: var(--muted); font-weight: 700; }
.info-list dd { margin: 0; }

.note-card {
  align-self: start;
}

.note-card p,
.note-card h2 { position: relative; z-index: 1; }
.note-card h2 { margin-top: 10px; }

.page-wrap {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.page-tag,
.meta { position: relative; z-index: 1; }
.meta {
  margin: 0 0 22px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer {
  padding: 0 0 56px;
  color: var(--muted);
  font-size: 14px;
}

.footer p { margin: 0; }

.footer a,
.section-card a,
.card a,
.info-list a { color: inherit; }

.redirect-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, #f0e5d4 0%, #f8f4ed 100%);
}

.redirect-card {
  max-width: 560px;
  padding: 26px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.92);
  box-shadow: var(--card-shadow);
}

.redirect-card p { margin: 0; color: var(--muted); }

code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(32, 23, 20, 0.06);
  font-size: 0.95em;
}

@media (max-width: 860px) {
  .hero-grid.simple,
  .content-grid,
  .info-list div {
    grid-template-columns: 1fr;
  }

  .info-list div { gap: 4px; }
}

@media (max-width: 760px) {
  .wrap,
  .page-wrap { width: min(100%, calc(100% - 24px)); }
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
  }
  .site-nav {
    width: 100%;
    justify-content: space-between;
  }
  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }
  .hero-card,
  .section-card,
  .card,
  .note-card { border-radius: 22px; }
  .hero-card,
  .section-card.clean,
  .clean-card,
  .hero-side { padding: 22px 18px; }
  h1 { font-size: clamp(42px, 16vw, 70px); }
  h2 { font-size: 30px; }
  .lead { font-size: 17px; }
  .actions { flex-direction: column; }
  .button,
  .button-secondary { width: 100%; }
}
