/* Thoughtful Style Guide: tokens copied from book.thethoughtfulstyle.com */
:root {
  --bg: #fbf7ef;
  --bg-alt: #f2ecdf;
  --ink: #0b1a3d;
  --ink-soft: #3b4a6b;
  --rule: #cdbf9f;
  --gold: #7a5f24;
  --btn-bg: #0b1a3d;
  --btn-ink: #fff5eb;
  --btn-hover: #16306e;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(11,26,61,.08), 0 10px 30px rgba(11,26,61,.10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000f38;
    --bg-alt: #020c2a;
    --ink: #fff5eb;
    --ink-soft: #c9cfdf;
    --rule: #34456f;
    --gold: #d4b36a;
    --btn-bg: #fff5eb;
    --btn-ink: #000f38;
    --btn-hover: #ffffff;
    --card: #0a1a4a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 34px rgba(0,0,0,.45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.col { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--rule); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; gap: 16px; }
.brand-img { display: block; height: 28px; width: auto; }
@media (min-width: 760px) { .brand-img { height: 34px; } }
.only-dark { display: none; }
@media (prefers-color-scheme: dark) { .only-dark { display: block; } .only-light { display: none; } }
.topnav { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; display: flex; gap: 20px; }
.topnav a { text-decoration: none; color: var(--ink-soft); }
.topnav a:hover { color: var(--ink); }

/* Article */
.crumbs { font-size: 14px; color: var(--ink-soft); margin: 28px 0 0; }
.crumbs a { color: var(--ink-soft); }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 28px 0 12px; font-weight: 600; }
.crumbs { margin-bottom: 14px; }
.keepgoing h2 { margin: .8em 0 .5em; }
.faq { margin-bottom: 1em; }
article h1 { font-size: clamp(32px, 5.6vw, 46px); }
.byline { font-size: 14px; color: var(--ink-soft); margin: 18px 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.byline strong { color: var(--ink); font-weight: 600; }

.answer { background: var(--bg-alt); border-left: 3px solid var(--gold); padding: 18px 22px; border-radius: 0 4px 4px 0; font-size: 19px; line-height: 1.55; margin: 0 0 1.4em; }

article h2 { font-size: clamp(24px, 3.6vw, 31px); margin: 2.1em 0 .6em; }
article h2:first-of-type { margin-top: 1.6em; }
article p, article li { font-size: 18px; line-height: 1.7; }
article ul, article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
article li { margin-bottom: .45em; }
article a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
article a:hover { background: var(--bg-alt); }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.8em; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; min-width: 560px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* Photos: consecutive images sit side by side on wider screens */
.photos { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 1.4em 0 1.8em; }
@media (min-width: 640px) { .photos.n2, .photos.n3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .photos.n3 { width: min(1000px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); grid-template-columns: repeat(3, 1fr); } }
.photos img { width: 100%; border-radius: 4px; border: 1px solid var(--rule); background: var(--bg-alt); }
.photos.n1 img { max-width: 420px; margin: 0 auto; }

/* Video */
.video { margin: 1.8em 0; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: #000 center / cover no-repeat; display: block; }
.video button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(11,26,61,.88); }
.video button::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -7px; border-left: 20px solid #fff5eb; border-top: 11px solid transparent; border-bottom: 11px solid transparent; z-index: 1; }
.video button:hover::after { background: #16306e; }
.video figcaption, .video .cap { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* FAQ */
.faq p { margin: 0 0 1.2em; }
.faq strong { font-family: var(--serif); font-size: 20px; display: block; margin-bottom: .2em; }

/* Keep going */
.keepgoing { background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 4px; padding: 6px 24px 10px; margin: 0 0 1.6em; }
.keepgoing ul { margin: 0; padding-left: 1.2em; }

.author { border-top: 2px solid var(--gold); margin-top: 2.4em; padding-top: 16px; }
.author p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Buttons and signup */
.btn { font-family: var(--sans); font-size: 17px; font-weight: 600; background: var(--btn-bg); color: var(--btn-ink); border: 0; border-radius: 4px; padding: 14px 26px; min-height: 48px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn:hover { background: var(--btn-hover); }
.signup { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 56px; padding: 44px 0; text-align: center; }
.signup h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 12px; }
.signup p { max-width: 32em; margin: 0 auto 20px; color: var(--ink-soft); }

/* Index pages */
.page-head { padding: 44px 0 10px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 5.6vw, 48px); }
.page-head p { color: var(--ink-soft); font-size: 19px; max-width: 34em; margin: 14px auto 0; }
.cards { display: grid; gap: 16px; margin: 30px 0 10px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; }
.card div { padding: 16px 20px 20px; }
.card .eyebrow { margin: 0 0 6px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.section-title { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 40px 0 0; font-family: var(--sans); }

footer { padding: 30px 0 44px; font-size: 14px; color: var(--ink-soft); text-align: center; }
footer a { color: var(--ink-soft); }
footer .links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }

@media print { .topbar, .signup, .video, footer { display: none; } }

@media (max-width: 480px) { .topnav a:first-child { display: none; } .topnav { white-space: nowrap; } }
