/* Thryfinity — shared brand system
   Navy #010E17, gold #C88A22 / #D8B778 / #9C7C4A — same palette as the book covers,
   the LinkedIn campaign, and the Instagram profile. Cinzel for display, Montserrat
   for body. Do not introduce new colors or typefaces without updating all pages. */

:root {
  --navy: #010E17;
  --navy-2: #0A1B27;
  --gold: #C88A22;
  --gold-light: #D8B778;
  --gold-muted: #9C7C4A;
  --cream: #F4F1E9;
  --ink: #14181C;
  --muted: #5B6167;
  --rule: rgba(200, 138, 34, 0.28);
  --ok: #2F6535;
  --ok-soft: #E2EDE1;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 4.5rem) clamp(1.2rem, 5vw, 2rem) 5rem;
}

/* -------------------------------------------------- language switcher */

.langbar {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: clamp(2rem, 6vw, 3rem);
  flex-wrap: wrap;
}

.langbar button {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--gold-muted);
  color: var(--gold-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.langbar button:hover { border-color: var(--gold); color: var(--gold-light); }

.langbar button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.langbar button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* -------------------------------------------------- mark + logotype */

.mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.4rem;
  display: block;
}

.wordmark {
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin: 0 0 2.6rem;
}

/* -------------------------------------------------- copy blocks (per-language) */

[data-lang-block] { display: none; }
[data-lang-block].active { display: block; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--gold);
  text-align: center;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.standfirst {
  text-align: center;
  font-size: clamp(1rem, 2.6vw, 1.14rem);
  color: var(--cream);
  max-width: 34ch;
  margin: 0 auto 2.8rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2.2rem 0;
}
.divider .line { flex: 1; height: 1px; background: var(--rule); }
.divider svg { flex: 0 0 auto; opacity: 0.9; }

.contents {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.contents li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--cream);
}

.contents .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold-muted);
  flex: 0 0 1.4rem;
}

.note {
  font-size: 0.87rem;
  color: var(--gold-muted);
  text-align: center;
  max-width: 36ch;
  margin: 0 auto 2.6rem;
  line-height: 1.6;
}

.note strong { color: var(--gold-light); font-weight: 600; }

/* -------------------------------------------------- form */

form {
  background: var(--navy-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(1.4rem, 5vw, 2rem);
}

.field { margin-bottom: 1rem; }

label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--gold-muted);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
}

input::placeholder { color: rgba(216, 183, 120, 0.4); }

input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 138, 34, 0.18);
}

button[type="submit"] {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  padding: 0.95rem 1rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background 0.15s, transform 0.05s;
}

button[type="submit"]:hover { background: var(--gold-light); }
button[type="submit"]:active { transform: translateY(1px); }
button[type="submit"]:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.privacy {
  font-size: 0.78rem;
  color: var(--gold-muted);
  text-align: center;
  margin-top: 0.9rem;
}

/* -------------------------------------------------- footer */

footer {
  text-align: center;
  margin-top: 3.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--gold-muted);
}

footer a { color: var(--gold-muted); }

/* -------------------------------------------------- thanks page */

.thanks-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.thanks-hero .check {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.2rem;
  color: var(--gold);
}

.lang-note {
  background: var(--navy-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2.8rem;
  font-size: 0.92rem;
  color: var(--cream);
}

.letter-card {
  background: var(--navy-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.letter-card summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--gold);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.letter-card summary::-webkit-details-marker { display: none; }

.letter-card summary .idx {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gold-muted);
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.letter-card summary .chev {
  margin-left: auto;
  transition: transform 0.15s;
  flex: 0 0 auto;
}
.letter-card[open] summary .chev { transform: rotate(180deg); }

.letter-card .body {
  padding: 0 1.3rem 1.3rem;
}

.letter-card .meta {
  font-size: 0.82rem;
  color: var(--gold-muted);
  margin: 0 0 0.9rem;
  font-style: italic;
}

.letter-text {
  background: var(--navy);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--cream);
  white-space: pre-wrap;
}

.letter-text .fill { color: var(--gold-light); font-weight: 600; }

.copy-btn {
  margin-top: 0.8rem;
  background: transparent;
  border: 1px solid var(--gold-muted);
  color: var(--gold-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.copy-btn.copied { border-color: var(--ok); color: var(--ok); }

.book-cta {
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.book-cta h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.book-cta p { font-size: 0.94rem; color: var(--cream); margin: 0 0 1.6rem; }

.book-links {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.book-links a {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.book-links a:hover { background: var(--gold); color: var(--navy); }

.book-links .soon {
  border-color: var(--gold-muted);
  color: var(--gold-muted);
  cursor: default;
}
.book-links .soon:hover { background: transparent; color: var(--gold-muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------- site nav (Home/About/Book/FAQ) */

.wrap-wide { max-width: 56rem; margin: 0 auto; padding: clamp(1.6rem, 5vw, 2.5rem) clamp(1.2rem, 5vw, 2rem) 6rem; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
}
.site-nav .brand svg { width: 30px; height: 30px; flex: 0 0 auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-nav a:hover { color: var(--gold-light); border-color: var(--gold-muted); }
.site-nav a[aria-current="page"] { color: var(--gold); }

.site-nav .nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none !important;
}
.site-nav .nav-cta:hover { background: var(--gold-light); }

.site-hero {
  text-align: center;
  margin: clamp(1.5rem, 5vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.site-hero .eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 1rem;
}

.site-hero h1 { max-width: 24ch; margin: 0 auto 1.1rem; }
.site-hero .standfirst { max-width: 46ch; }

.cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold-muted); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }

section.block {
  padding-top: clamp(2.4rem, 5vw, 3.4rem);
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  border-top: 1px solid var(--rule);
}

.block h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  color: var(--gold);
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.block .kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-muted);
  display: block;
  margin-bottom: 0.6rem;
}

.grid-3 {
  display: grid;
  gap: 1.3rem;
  margin-top: 1.4rem;
}
@media (min-width: 46rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--navy-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
}
.card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-light);
  margin: 0 0 0.6rem;
}
.card p { font-size: 0.92rem; margin: 0; }

.parts {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  margin: 1.4rem 0 0;
}
.part-row {
  background: var(--navy-2);
  padding: 1.1rem 1.3rem;
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
}
.part-row .pn { font-family: var(--mono); font-size: 0.7rem; color: var(--gold-muted); }
.part-row h3 { font-family: var(--sans); font-weight: 600; font-size: 0.98rem; color: var(--gold-light); margin: 0 0 0.3rem; }
.part-row p { font-size: 0.88rem; margin: 0; color: var(--cream); }

.editions {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.4rem;
}
@media (min-width: 42rem) { .editions { grid-template-columns: repeat(2, 1fr); } }

.edition-card {
  background: var(--navy-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
}
.edition-card h3 { font-family: var(--serif); color: var(--gold); font-size: 1.15rem; margin: 0 0 0.3rem; }
.edition-card .sub { font-size: 0.85rem; color: var(--gold-muted); margin: 0 0 1rem; }
.edition-card .links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.edition-card .links a,
.edition-card .links span {
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
}
.edition-card .links a:hover { background: var(--gold); color: var(--navy); }
.edition-card .links .soon { border-color: var(--gold-muted); color: var(--gold-muted); }

.faq-item {
  background: var(--navy-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--gold-light);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: 0 0 auto; transition: transform 0.15s; color: var(--gold-muted); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .a { padding: 0 1.3rem 1.2rem; font-size: 0.93rem; color: var(--cream); }
.faq-item .a p:last-child { margin-bottom: 0; }

.author-block {
  display: grid;
  gap: 1.6rem;
  margin-top: 1rem;
}
@media (min-width: 40rem) { .author-block { grid-template-columns: 1fr; } }
.author-block p { font-size: 1.02rem; }
.author-signoff {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  margin-top: 1.6rem;
}

.site-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--gold-muted);
}
.site-footer a { color: var(--gold-muted); }
.site-footer .links { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
