/* heyzilly.com: the one shared stylesheet. Type, colours, page edges, top bar, buttons, questions,
   footer and cookie banner live here for every page. The home page only adds its hero and acts. */

@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/assets/fonts/Figtree-Regular.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: url(/assets/fonts/Figtree-Medium.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/assets/fonts/Figtree-Bold.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 900; font-display: swap; src: url(/assets/fonts/Figtree-Black.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #1b1512;
  --ink-soft: #6b5a50;
  --rust: #b03a08;
  --sand: #f3e7da;
  --foot: #f2e4d2;
  --coral: #e8622a;
  --apricot: #f2a03d;
  --cream: #fbf6ef;
  --night: #16213f;
  --line: #e6d8c9;
  --rule: rgba(90, 45, 20, .16);   /* the one thin line used everywhere */
  --grad: linear-gradient(100deg, var(--coral), var(--apricot));
  --font: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(32px, 4vw, 64px);            /* both page edges together */
  --room: min(1440px, 100% - var(--gutter));   /* the outer edges of every page */
  --column: min(820px, 100% - var(--gutter));  /* reading text */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.wrap { width: var(--room); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.skip:hover { color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 50; padding: 14px 0; background: rgba(251, 246, 239, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { flex-shrink: 0; }
.logo img { width: 42px; height: 42px; border-radius: 11px; }
.nav .links { display: flex; gap: 28px; list-style: none; margin: 0 auto 0 12px; padding: 0; font-size: 16px; font-weight: 500; }
.nav .links a { color: var(--ink); text-decoration: none; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--rust); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.btn { display: inline-flex; align-items: center; padding: 10px 20px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.5; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s; }
.btn:hover { background: #ff7a2f; color: #190c04; }
.btn.soft { background: var(--sand); color: var(--ink); }
.badge { display: inline-block; }
.badge img { height: 50px; width: auto; }
.socials { display: inline-flex; gap: 6px; }
.soc { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); text-decoration: none; }
.soc:hover { color: var(--rust); background: var(--sand); }
.socials.big .soc { width: 50px; height: 50px; background: rgba(255, 255, 255, .6); }
.socials.big .soc:hover { background: #fff; }

/* Page header: just the title */
.page-hero { width: min(820px, 100%); margin: clamp(30px, 6vw, 70px) auto 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 99px; background: var(--sand); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.page-hero h1 { margin: 16px 0 14px; font-size: clamp(42px, 6vw, 80px); line-height: .96; letter-spacing: -.045em; font-weight: 900; text-wrap: balance; }
.page-hero .status { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Questions: one look on the home page, blog, help and about */
.questions details, .qa details { border-top: 1px solid var(--rule); }
.questions details:last-of-type, .qa details:last-of-type { border-bottom: 1px solid var(--rule); }
.questions summary, .qa summary { list-style: none; cursor: pointer; position: relative; padding: 22px 56px 22px 0; font-weight: 700; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.2; letter-spacing: -.02em; transition: color .25s; }
.questions summary:hover, .questions details[open] summary, .qa summary:hover, .qa details[open] summary { color: var(--rust); }
.questions summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.questions summary::before, .questions summary::after, .qa summary::before, .qa summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 3px; margin-top: -1px; border-radius: 2px; background: currentColor; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.questions summary::after, .qa summary::after { transform: rotate(90deg); }
.questions details[open] summary::after, .qa details[open] summary::after { transform: rotate(0); }
.questions details p, .qa details p { max-width: 36em; margin: 0; padding: 0 56px 26px 0; color: var(--ink-soft); }

/* Content */
.page { width: var(--column); margin: 36px auto 0; padding-top: 36px; border-top: 1px solid var(--rule); font-size: 18px; }
.page > :first-child { margin-top: 0; }
.page h2 { margin: 1.9em 0 .5em; font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -.035em; font-weight: 900; text-wrap: balance; }
.page h3 { margin: 1.6em 0 .4em; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
.page p { margin: 0 0 1em; }
.page ul, .page ol { padding-left: 1.3em; margin: 0 0 1em; }
.page li + li { margin-top: .4em; }
.toc { margin: 0 0 2em; padding: 26px 30px; border-radius: 28px; background: var(--sand); }
.toc h2 { margin-top: 0; font-size: 22px; }
.toc ol { margin: 0; }
code { padding: .1em .35em; border-radius: 6px; background: var(--sand); font-size: .92em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--sand); }
tr:last-child td { border-bottom: 0; }
.em { white-space: nowrap; }

/* Footer */
.finale { margin-top: clamp(70px, 9vw, 120px); background: var(--foot); }
.finale-in { width: var(--room); margin-inline: auto; padding: clamp(40px, 4.5vw, 64px) 0 30px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px 22px; }
.finale-in > a:first-child { justify-self: start; }
.wordmark { width: min(46vw, 190px); }
.legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; font-size: 15px; color: var(--ink-soft); }
.legal nav { display: flex; gap: 8px 24px; flex-wrap: wrap; font-weight: 500; }
.legal a { color: var(--ink); text-decoration: none; }
.legal a:hover, .legal a[aria-current="page"] { color: var(--rust); }

/* Download Zilly card: navy close-up of Zilly, copy and App Store badge on the right */
.dl-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 260px; margin: 44px 0; border-radius: 32px; overflow: hidden; color: #fff; background: #001b54; isolation: isolate; }
.dl-card::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 60%;
  background: url(/assets/img/dl-zilly.webp) 20% 50% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 98%); mask-image: linear-gradient(90deg, #000 60%, transparent 98%); }
.dl-copy { grid-column: 2; display: grid; align-content: center; justify-items: start; gap: 16px; padding: 24px 28px 24px 6px; }
.dl-sub { display: block; margin-top: -8px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.dl-card p { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1; font-weight: 900; letter-spacing: -.04em; text-wrap: balance; }
.dl-card .badge img { height: 56px; width: auto; }
/* Blog list (one 640px column, reference hierarchy: big centred title, pill nav, divided rows) */
.bloglist { width: min(640px, 100% - var(--gutter)); margin: clamp(30px, 6vw, 64px) auto 0; }
.bloglist h1 { margin: 0; text-align: center; font-size: clamp(58px, 15.5vw, 124px); line-height: .92; letter-spacing: -.055em; font-weight: 900; text-wrap: balance; }
.subbar { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 18px 0 0; }
.pillnav { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 99px; background: var(--sand); font-size: 15px; font-weight: 500; }
.pillnav a { padding: 8px 16px; border-radius: 99px; color: var(--ink-soft); text-decoration: none; }
.pillnav a:hover { color: var(--ink); }
.pillnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.bloglist .intro { margin: 22px 0 0; color: var(--ink-soft); font-size: 17px; text-align: center; }
.rows { margin-top: clamp(50px, 8vw, 90px); border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 203px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.row img, .row .noimg { width: 203px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 18px; background: var(--sand); }
.row .txt { display: grid; gap: 8px; align-content: start; }
.row small { font-size: 14px; color: var(--ink-soft); }
.row b { font-size: 24px; line-height: 1.08; letter-spacing: -.035em; font-weight: 900; text-wrap: balance; }
.row .ex { font-size: 16px; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row:hover b { color: var(--rust); }
.empty { color: var(--ink-soft); padding: 34px 0; }

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 40px; font-size: 15px; }
.pager a, .pager span { min-width: 40px; padding: 8px 14px; border-radius: 99px; text-align: center; text-decoration: none; color: var(--ink-soft); }
.pager a:hover { color: var(--ink); background: var(--sand); }
.pager [aria-current="page"] { background: var(--ink); color: #fff; }

/* Cookie banner, added by consent.js on every page */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-inline: auto; display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px -20px rgba(60, 30, 10, .5); font-size: 14px; }
.consent p { margin: 0; color: var(--ink-soft); }
.consent-btns { display: flex; gap: 8px; flex-shrink: 0; }
.consent .btn { padding: 9px 16px; font-size: 14px; }
@media (max-width: 520px) { .consent { flex-direction: column; align-items: stretch; text-align: center; } .consent-btns { justify-content: center; } }

/* Post: same top and text column as the privacy page (.page-hero + .page) */
.crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.fic { color: var(--rust); font-weight: 700; }
.post .hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 32px; margin: 0 0 34px; }
.lede { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.post img:not(.hero):not(.dl-card img) { border-radius: 28px; margin: 1.2em auto; }
.page blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 5px solid #ff7a2f; font-weight: 700; font-size: 1.15em; line-height: 1.35; letter-spacing: -.015em; }
.page blockquote > :last-child { margin-bottom: 0; }
.qa { margin: 64px 0 10px; }
.qa .pill { display: none; }
.page .qa h2 { margin: 0 0 24px; font-size: clamp(34px, 4.6vw, 56px); line-height: .98; }
.updated { font-size: 14px; color: var(--ink-soft); }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.next img { border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; }
.next small { display: block; color: var(--ink-soft); font-size: 14px; margin-bottom: 6px; }
.next b { font-size: clamp(20px, 2vw, 26px); line-height: 1.1; letter-spacing: -.03em; font-weight: 900; }
.next:hover b { color: var(--rust); }

@media (max-width: 820px) {
  .nav .links { gap: 18px; margin-left: 4px; }
  .nav .links .wide { display: none; }
  .nav-end .socials { display: none; }
  .nav .wrap { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .finale-in { grid-template-columns: 1fr auto; }
  .finale-in > a:first-child { grid-column: 1 / -1; }
  .wordmark { width: 150px; }
  .legal nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 12px 20px; }
  .dl-card { grid-template-columns: 1fr; min-height: 0; }
  .dl-card::before { width: 100%; height: 170px; inset: 0 0 auto 0; background-position: 30% 35%; background-size: cover;
    -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); mask-image: linear-gradient(180deg, #000 65%, transparent); }
  .dl-copy { grid-column: 1; padding: 160px 22px 24px; }
}
@media (max-width: 560px) {
  .subbar { justify-content: center; }
  .subbar .socials { display: none; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .row img, .row .noimg { width: 100%; }
  .next { grid-template-columns: 1fr; }
  .btn { padding: 9px 14px; font-size: 14px; }
}
@media print {
  .nav, .finale .wordmark, .skip { display: none; }
}
