/* Sink In website. Editorial layout: Newsreader for headings and phrasal
   verbs, Inter for body copy, hairline rules instead of cards, blue only on
   the particle. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0a0b;
  --text: #ecedef;
  --text-2: #a4abb5;
  --muted: #6f7782;
  --rule: rgba(255, 255, 255, 0.1);
  --accent: #3d7eff;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 12px; background: var(--text); color: var(--bg); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
.particle { color: var(--accent); }
.muted { color: var(--muted); }

/* Header */
.site-header .wrap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-top: 28px; padding-bottom: 28px;
}
.wordmark { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; text-decoration: none; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: 15px; }
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 560px) { .site-nav .nav-guide { display: none; } }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.stores a { display: block; border-radius: 9px; transition: opacity 0.15s ease; }
.stores a:hover { opacity: 0.85; }
.stores img { height: 48px; width: auto; }
.store-note { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

/* Hero */
.hero { border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
}
.hero-copy { padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 112px); }
.hero h1 { font-size: clamp(56px, 8.4vw, 116px); line-height: 0.94; }
.hero h1 .kicker {
  display: block; margin-bottom: 0.35em;
  font-size: 0.3em; line-height: 1.2; font-style: italic; letter-spacing: 0; color: var(--text-2);
}
.hero .lede { max-width: 26em; margin: 36px 0 36px; color: var(--text-2); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.hero-phone { align-self: end; justify-self: center; width: min(100%, 400px); margin-bottom: -1px; }
.hero-phone img { width: 100%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-phone { width: min(78%, 360px); }
}

/* Sections: label column + content column */
.section { border-bottom: 1px solid var(--rule); }
.section > .wrap {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 80px);
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 9vw, 112px);
}
.section h2 { font-size: clamp(34px, 3.8vw, 48px); line-height: 1.05; }
@media (max-width: 860px) { .section > .wrap { grid-template-columns: 1fr; } }

.numbered { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.numbered li {
  counter-increment: n;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px;
  padding: 28px 0; border-top: 1px solid var(--rule);
}
.numbered li:first-child { border-top: 0; padding-top: 6px; }
.numbered li::before {
  content: counter(n); grid-row: span 2;
  font-family: var(--serif); font-size: 30px; line-height: 1.15; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.numbered h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; margin-bottom: 8px; }
.numbered p { margin: 0; color: var(--text-2); max-width: 34em; }

.links { margin: 0; padding: 0; list-style: none; }
.links li { border-top: 1px solid var(--rule); }
.links li:first-child { border-top: 0; }
.links a { display: block; padding: 28px 0; text-decoration: none; }
.links li:first-child a { padding-top: 6px; }
.links h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; margin-bottom: 8px; }
.links p { margin: 0 0 12px; color: var(--text-2); max-width: 34em; }
.links .more { color: var(--text); font-size: 15px; font-weight: 500; }
.links a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:first-child { border-top: 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 24px; line-height: 1.25;
}
.faq details:first-child summary { padding-top: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-family: var(--sans); font-size: 22px; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 24px; color: var(--text-2); max-width: 38em; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--text); text-underline-offset: 3px; }

/* Closing call to action */
.closing .wrap { padding-top: clamp(72px, 11vw, 144px); padding-bottom: clamp(72px, 11vw, 144px); }
.closing h2 { max-width: 14em; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; }
.closing p { margin: 24px 0 36px; color: var(--text-2); font-size: clamp(18px, 1.6vw, 21px); }

/* Footer */
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  padding-top: 32px; padding-bottom: 48px; color: var(--muted); font-size: 14px;
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; flex-basis: 100%; max-width: 62em; }

/* Articles (exam guides) */
.article-head { border-bottom: 1px solid var(--rule); }
.article-head .wrap { max-width: 880px; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.article-head h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.0; margin-bottom: 24px; }
.article-head .lede { color: var(--text-2); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; margin: 0; }
.article-meta { margin: 24px 0 0; color: var(--muted); font-size: 14px; }

.prose { max-width: 880px; padding-top: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin: 72px 0 20px; }
.prose h3 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.6em; }
.prose a { color: var(--text); text-decoration-color: var(--muted); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--text); }

.toc { margin: 40px 0 0; padding: 0 0 24px; border-bottom: 1px solid var(--rule); }
.toc p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 0.2em 0; }

.task { margin: 20px 0; padding: 20px 0 20px 24px; border-left: 1px solid var(--text-2); }
.task p { margin: 0; color: var(--text); font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.answer-toggle { margin: 0 0 8px; }
.answer-toggle summary { cursor: pointer; color: var(--text); font-size: 15px; font-weight: 500; }
.answer-toggle p { margin: 12px 0 0; }

.verb-list { margin: 0 0 1.5em; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.verb-list li { display: grid; grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2fr); gap: 6px 32px; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.verb-list .pv { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--text); }
.verb-list .lvl { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.verb-list .def { margin: 0 0 4px; color: var(--text); }
.verb-list .ex { margin: 0; color: var(--text-2); }
.verb-list .ex b { color: var(--text); font-weight: 600; }
@media (max-width: 560px) { .verb-list li { grid-template-columns: 1fr; } }

.task-table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; font-size: 16px; }
.task-table th, .task-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.task-table th { color: var(--muted); font-size: 14px; font-weight: 500; }
.task-table td { color: var(--text-2); }
.task-table td:first-child { color: var(--text); font-family: var(--serif); font-size: 20px; white-space: nowrap; }
@media (max-width: 560px) { .task-table td:first-child { white-space: normal; } }

.app-note { margin: 64px 0; padding: 32px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.app-note h2 { margin: 0 0 8px !important; font-size: 30px !important; }
.app-note p { margin: 0 0 20px; }

/* 404 */
.not-found .wrap { padding-top: clamp(72px, 12vw, 160px); padding-bottom: clamp(72px, 12vw, 160px); }
.not-found h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1; margin-bottom: 20px; }
.not-found p { color: var(--text-2); font-size: 20px; }
