/*
 * DogHush — site styles.
 *
 * One visual world, the app's own: night green, cream paper, teal ink. Fraunces for
 * what is said, Hanken Grotesk for what is explained, IBM Plex Mono only where the
 * page is quoting a clock or a measurement. No cards, no shadows on text blocks, no
 * gradients: hairlines and white space separate things.
 */

:root {
  --night: #0F2822;
  --night-2: #153B33;
  --cream: #FEF6E1;
  --paper: #FBF0D6;
  --ink: #0F2822;
  --ink-soft: #3E534D;
  --teal: #17705F;        /* darkened from the app's #1C8173 so links clear AA on cream */
  --teal-fill: #1C8173;
  --mint: #7FD3C3;
  --mint-soft: #B8D9D0;
  --wine: #8A3A44;
  --rule: rgba(15, 40, 34, 0.16);
  --rule-dark: rgba(254, 246, 225, 0.18);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --rail: 7.5rem;
  --measure: 38rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { text-decoration-thickness: 0.12em; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mint); color: var(--night); }

h1, h2, h3 { font-family: var(--serif); font-weight: 420; font-variation-settings: "SOFT" 80; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.75rem, 6.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.45; color: var(--ink-soft); }
.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; }
small, .small { font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Page frame -------------------------------------------------------------------- */
.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); padding: 10px 14px; z-index: 20; }
.skip:focus { left: 12px; top: 12px; }

.top { background: var(--night); color: var(--cream); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 30px); align-items: center; font-size: 0.98rem; }
.top nav a { color: var(--mint-soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; }
@media (max-width: 640px) { .top nav a.opt { display: none; } }

/* ---- Hero -------------------------------------------------------------------------- */
.hero { background: var(--night); color: var(--cream); padding-block: clamp(24px, 4vw, 48px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.6fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lede { color: var(--mint-soft); margin-top: clamp(20px, 3vw, 32px); max-width: 34rem; }
.hero .get { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: clamp(24px, 3.4vw, 40px); }
.badge img { height: 52px; width: auto; }
.hero .terms { color: var(--mint-soft); font-size: 0.95rem; max-width: 22rem; }
.hero .phone { justify-self: end; width: min(100%, 300px); margin-bottom: -18%; }
.phone { position: relative; background: #07140F; border-radius: 13.5% / 6.4%; padding: 3.2%; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.phone img { width: 100%; border-radius: 11% / 5.2%; }
.phone::after { content: ""; position: absolute; top: 3.1%; left: 50%; width: 27%; height: 3.1%; transform: translateX(-50%); background: #020504; border-radius: 999px; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .phone { justify-self: center; width: min(72%, 280px); margin-top: 8px; }
}

/* The listening log: one strip of sound across the page, barks dying as they are answered. */
.log { position: relative; border-top: 1px solid var(--rule-dark); margin-top: clamp(24px, 3.2vw, 40px); background: var(--night); }
.log canvas { width: 100%; height: clamp(96px, 14vw, 150px); }
.log figcaption { position: absolute; left: var(--gutter); top: 10px; color: var(--mint-soft); }

/* ---- Sections ---------------------------------------------------------------------- */
section { padding-block: clamp(56px, 9vw, 120px); }
section + section { border-top: 1px solid var(--rule); }
.dark { background: var(--night); color: var(--cream); border-top: 0 !important; }
.dark a { color: var(--mint); }
.dark .lede, .dark small, .dark .small { color: var(--mint-soft); }
.paper { background: var(--paper); }

/* Two-column editorial block: words left, picture right, bleeding toward the edge. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 + p, .stack > h2 + p, .stack > h2 + .lede { margin-top: clamp(18px, 2.4vw, 28px); }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.stack > * + * { margin-top: clamp(18px, 2.4vw, 28px); }
.art { width: 100%; max-width: 34rem; margin-inline: auto; }

/* What it is: one definitional paragraph, set large. */
.what .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
@media (max-width: 820px) { .what .split { grid-template-columns: minmax(0, 1fr); } .what .art { max-width: 20rem; } }
.what p { font-family: var(--serif); font-variation-settings: "SOFT" 80; font-size: clamp(1.5rem, 3.1vw, 2.35rem); line-height: 1.22; letter-spacing: -0.02em; max-width: 46rem; }
.what p + p { margin-top: 0.7em; }
.what .by { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); margin-top: 1.6em; letter-spacing: 0; }

/* An afternoon, in timestamps. The rail is the clock; the order is the information. */
.afternoon ol { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.afternoon li { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 clamp(16px, 3vw, 40px); padding-block: clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--rule-dark); }
.afternoon time { font-family: var(--mono); font-size: 0.95rem; color: var(--mint); padding-top: 0.35em; font-variant-numeric: tabular-nums; }
.afternoon h3 { color: var(--cream); }
.afternoon li p { color: var(--mint-soft); margin-top: 8px; }
.afternoon li.bark time { color: #E29AA3; }
.afternoon .note { margin-top: 22px; }
@media (max-width: 560px) { .afternoon li { grid-template-columns: minmax(0, 1fr); } .afternoon time { padding-top: 0; } }

/* Before / after: two pictures and one sentence each. No slider to discover. */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); }
.pair figure { margin: 0; display: flex; flex-direction: column; }
.pair img { width: 100%; height: clamp(220px, 30vw, 380px); object-fit: contain; object-position: left bottom; }
.pair figcaption { margin-top: 16px; }
.pair figcaption b { display: block; font-family: var(--serif); font-weight: 420; font-size: 1.5rem; letter-spacing: -0.02em; }
.pair .before b { color: var(--wine); }
@media (max-width: 640px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* Comic strip */
.strip { margin: 0; }
.strip + .strip { margin-top: clamp(24px, 4vw, 40px); }
.strip img { width: 100%; }
.strip figcaption { margin-top: 12px; max-width: var(--measure); }
.strip figcaption b { color: var(--ink); }

/* Tables: typographic, no icons. Scrolls inside itself on a phone. */
.table { overflow-x: auto; margin-top: clamp(28px, 4vw, 48px); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 1rem; line-height: 1.4; }
caption { text-align: left; caption-side: bottom; padding-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }
th, td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--rule); }
thead th { font-family: var(--serif); font-weight: 420; font-size: 1.2rem; letter-spacing: -0.01em; border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 600; width: 26%; }
td.us, th.us { color: var(--teal); font-weight: 600; }
td.bad { color: var(--wine); }

.table + p { margin-top: 1.4em; }
.table + .tablenote { margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Works / doesn't */
.honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 88px); margin-top: clamp(32px, 5vw, 56px); }
.honest ul { list-style: none; margin: 16px 0 0; padding: 0; }
.honest li { padding-block: 14px; border-top: 1px solid var(--rule-dark); }
.honest li:last-child { border-bottom: 1px solid var(--rule-dark); }
.honest li b { display: block; color: var(--cream); }
.honest li span { color: var(--mint-soft); font-size: 1rem; }
@media (max-width: 720px) { .honest { grid-template-columns: minmax(0, 1fr); } }

/* Price: said plainly */
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--ink); }
.price > div { padding: 26px clamp(0px, 3vw, 40px) 26px 0; border-bottom: 1px solid var(--rule); }
.price > div + div { padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--rule); }
.price .amount { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.price .amount span { font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0; color: var(--ink-soft); }
.price p { margin-top: 12px; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 640px) { .price { grid-template-columns: minmax(0, 1fr); } .price > div + div { padding-left: 0; border-left: 0; } }

/* Dogs */
.dogs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin-top: clamp(28px, 4vw, 48px); }
.dogs figure { margin: 0; }
.dogs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.dogs figcaption { margin-top: 10px; font-size: 1rem; }
.dogs figcaption span { color: var(--ink-soft); }
@media (max-width: 560px) { .dogs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ */
.faq { margin-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--rule); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.015em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 1.6rem; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; }

/* Guides index + footer */
.guides { list-style: none; margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; border-top: 1px solid var(--rule); columns: 2; column-gap: clamp(28px, 6vw, 88px); }
.guides li { break-inside: avoid; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.guides a { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.015em; text-decoration: none; color: var(--ink); }
.guides a:hover { color: var(--teal); text-decoration: underline; }
.guides span { display: block; font-size: 0.98rem; color: var(--ink-soft); margin-top: 2px; }
.dark .guides, .dark .guides li { border-color: var(--rule-dark); }
.dark .guides a { color: var(--cream); } .dark .guides span { color: var(--mint-soft); }
@media (max-width: 720px) { .guides { columns: 1; } }

.end { background: var(--night); color: var(--cream); padding-block: clamp(56px, 9vw, 110px) 0; }
.end .split { align-items: end; }
.end h2 em { font-style: normal; color: var(--mint); }
.end .lede { color: var(--mint-soft); }
.end .art { max-width: 30rem; margin-bottom: -2px; }
footer { background: var(--night); color: var(--mint-soft); border-top: 1px solid var(--rule-dark); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; padding-block: 26px 34px; }
footer a { color: var(--mint-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---- Guide pages ------------------------------------------------------------------- */
.guide-head { background: var(--night); color: var(--cream); padding-block: clamp(36px, 6vw, 80px); }
.guide-head h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); max-width: 18ch; }
.guide-head .lede { color: var(--mint-soft); margin-top: 22px; max-width: 40rem; }
.crumbs { font-size: 0.92rem; color: var(--mint-soft); margin-bottom: 22px; }
.crumbs a { color: var(--mint-soft); }
.meta { margin-top: 26px; color: var(--mint-soft); font-size: 0.95rem; }
article.guide { padding-block: clamp(40px, 7vw, 88px); }
article.guide .wrap { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
article.guide h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 2.2em; scroll-margin-top: 24px; }
article.guide h2:first-child { margin-top: 0; }
article.guide h3 { margin-top: 1.8em; }
article.guide h2 + p, article.guide h3 + p { margin-top: 0.7em; }
article.guide ul, article.guide ol { max-width: var(--measure); padding-left: 1.2em; margin: 1em 0 0; }
article.guide li + li { margin-top: 0.5em; }
article.guide .answer { font-family: var(--serif); font-variation-settings: "SOFT" 80; font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.32; letter-spacing: -0.015em; padding-bottom: 1.2em; border-bottom: 1px solid var(--rule); }
article.guide figure { margin: 2em 0 0; }
article.guide aside { position: sticky; top: 24px; border-top: 2px solid var(--ink); padding-top: 18px; font-size: 1rem; }
article.guide aside h2 { font-size: 1.35rem; margin: 0; }
article.guide aside p { margin-top: 10px; color: var(--ink-soft); }
article.guide aside .badge { display: inline-block; margin-top: 16px; }
article.guide aside .badge img { height: 44px; }
article.guide aside ul { list-style: none; padding: 0; margin-top: 22px; border-top: 1px solid var(--rule); }
article.guide aside li { padding-block: 10px; border-bottom: 1px solid var(--rule); margin: 0; }
.sources { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--ink-soft); }
.sources ol { padding-left: 1.3em; }
.sources li { overflow-wrap: anywhere; }
.disclaimer { margin-top: 1.6em; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 900px) { article.guide .wrap { grid-template-columns: minmax(0, 1fr); } article.guide aside { position: static; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
@media print { .top nav, .log, .badge, footer nav { display: none; } body { background: #fff; } }
