/* ClutchBook public site: shared by the home, privacy and support pages (home.css adds the home page's own styles).
   The one web font is self-hosted, so visitors' browsers never contact a third party. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.woff2) format('woff2');
}

:root {
  --bg: #FFFFFF; --ink: #14213D; --ink-2: #55607A; --line: #E4E8F0;
  --orange: #E8630A; --sky: #E3ECFF; --mint: #DDF4E8; --sun: #FFEBCC; --lilac: #ECE6FF;
  --shadow-card: 0 20px 40px -24px rgba(20,33,61,.35);
  --font: 'Bricolage Grotesque', system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--font); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Display headings: each page sets only size and margin. */
h1, h2 { font-weight: 800; line-height: 1.05; letter-spacing: -.01em; font-variation-settings: "wdth" 85; }
h1 { line-height: 1; letter-spacing: -.015em; }

/* Pastel panels and raised white cards, shared by the page heading, contact card and home page art. */
.tint-sky { background: var(--sky); } .tint-mint { background: var(--mint); } .tint-sun { background: var(--sun); } .tint-lilac { background: var(--lilac); }
.raised { background: #fff; box-shadow: var(--shadow-card); }

/* Links in text stay ink-coloured (orange text is too faint on white) with an orange underline. */
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Header, same as the home page */
header.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 800; font-size: 28px; text-decoration: none; }
/* The bookmark stands on the name's baseline and its notched tail dips below it, like a descender
   (logo.svg is cropped to the mark, so its box is the bookmark). It hops up on hover, with a little overshoot. */
.brand img { display: block; width: auto; height: 34px; position: relative; top: 6px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img, .brand:focus-visible img { transform: translateY(-3px); }
.top nav { display: flex; gap: 24px; font-size: 16px; color: var(--ink-2); }
.top nav a, footer a { text-decoration: none; }
.top nav a:hover, footer a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* Page heading panel */
.page-head { border-radius: 32px; padding: 56px 56px 48px; margin: 16px 0 64px; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); margin: 0 0 16px; max-width: 16ch; }
.lead { font-size: 21px; color: var(--ink-2); max-width: 48ch; margin: 0 0 20px; }
.updated { font-size: 15px; color: var(--ink-2); margin: 0; }

/* Privacy and support text */
.prose h2 { font-size: 28px; line-height: 1.15; margin: 56px 0 12px; scroll-margin-top: 24px; }
p, ul { margin: 0 0 16px; }
ul { padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--orange); }
strong { font-weight: 700; }

/* Privacy: contents column beside the text */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: 15px; }
.toc b { display: block; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--orange); }
.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }

/* Contact card */
.contact { border-radius: 20px; padding: 20px 24px; margin-top: 8px; }
.page-head .contact { max-width: 60ch; margin: 28px 0 0; }
.contact b { display: block; font-size: 20px; margin-bottom: 4px; }
.contact p { margin: 0; color: var(--ink-2); }
.contact a { color: var(--ink); font-weight: 700; }

/* Support: questions open in place, like the home page FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { font-weight: 700; font-size: 20px; line-height: 1.35; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--orange); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 12px 0 0; max-width: 62ch; }
details strong { color: var(--ink); }
.aside { max-width: 760px; margin: 48px auto 0; color: var(--ink-2); }

/* Footer, same as the home page */
main { padding-bottom: 96px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--ink-2); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer nav { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 18px; }
  .page-head { padding: 36px 24px 32px; border-radius: 24px; margin-bottom: 40px; }
  .lead { font-size: 19px; }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .prose h2 { font-size: 25px; margin-top: 44px; }
  summary { font-size: 18px; }
  main { padding-bottom: 72px; }
}
/* Phones: a smaller brand (same mark-to-name proportions) and a tighter nav, so the header fits down to 320px. */
@media (max-width: 480px) {
  .brand { font-size: 22px; gap: 8px; }
  .brand img { height: 27px; top: 5px; }
  .top nav { gap: 14px; font-size: 15px; }
}
/* The smallest phones: the home page's FAQ link (the section is further down the page) makes way. */
@media (max-width: 360px) {
  .top nav { gap: 12px; }
  .top nav a[href="#faq"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  summary::after, .brand img { transition: none; }
}
