/* Dog Due site: what all three pages share. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --wine: #32292F;        /* ground, dark */
  --turq: #99E1D9;        /* accent on dark; ground, light */
  --card: #4A3E46;        /* app card on wine */
  --text-2: #CFC6CC;      /* secondary text on wine */
  --text-2-light: #3F4F4D;/* secondary text on turquoise */
  --white: #FFFFFF;
  --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px;
  --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;
  --gutter: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- page base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--wine); }
body {
  background: var(--wine); color: var(--white);
  font-family: "Nunito", system-ui, sans-serif; font-weight: 700;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, [role="button"]:focus-visible, button:focus-visible, .content summary:focus-visible {
  outline: 3px solid var(--turq); outline-offset: 4px; border-radius: 10px;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  padding: 12px 16px; border-radius: 12px; background: var(--turq); color: var(--wine);
  font-weight: 900; text-decoration: none;
}
.skip:focus { top: 8px; }
.wrap { max-width: 1296px; margin: 0 auto; padding: 0 var(--gutter); }
p { margin: 0; text-wrap: pretty; }

/* ---------- header: icon and wordmark, and one Menu button (no bar) ---------- */
.top { position: relative; z-index: 30; }
.top-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border-radius: 10px; text-decoration: none; }
.mark .icon { display: block; width: 32px; height: 32px; border-radius: 7px; } /* the icon's own rounded-square shape at 32 px */
.mark .word { display: block; height: 24px; width: auto; }
.menu { position: relative; }
.menu-btn {
  list-style: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 18px;
  border-radius: 999px; background: var(--card); color: var(--white); font-size: 16px; font-weight: 800;
}
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn::after { /* a small chevron, drawn in CSS */
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg);
}
.menu[open] .menu-btn::after { margin-top: 4px; transform: rotate(-135deg); }
.menu-btn:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; }
.menu-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover { background: color-mix(in oklab, var(--card) 80%, var(--white)); } }
/* the list hangs under the button, right-aligned; it is out of flow, so opening it moves nothing */
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 200px; max-width: calc(100vw - 2 * var(--gutter));
  margin: 0; padding: 6px; list-style: none; border-radius: 22px; background: var(--card);
}
.menu-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 48px; padding: 0 14px;
  border-radius: 16px; font-size: 17px; font-weight: 800; text-decoration: none;
}
.menu-list a:focus-visible { outline: 3px solid var(--turq); outline-offset: -3px; }
.menu-list a:active { background: rgba(255,255,255,0.08); }
@media (hover: hover) and (pointer: fine) { .menu-list a:hover { background: rgba(255,255,255,0.08); } }
/* the page you are on: turquoise, underlined and a dot, so the mark is not colour alone */
.menu-list a[aria-current="page"] { color: var(--turq); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-list a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- the badge ---------- */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: var(--space-2xl); }
.badge { display: inline-block; padding: 12px; margin: -12px; border-radius: 12px; } /* a quarter of its height as clear space */
.badge img { display: block; height: 48px; width: auto; }
.badge:active img { opacity: 0.85; }

/* ---------- Questions and About: h1 and Mignon on one row, the content under the h1 ---------- */
.page { padding: var(--space-2xl) 0 var(--space-3xl); }
.page-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); align-items: end; }
.page h1 { margin: 0; font-weight: 900; letter-spacing: -0.02em; font-size: clamp(48px, 12vw, 96px); line-height: 0.98; text-wrap: balance; }
.pose { display: block; width: 88px; height: 88px; object-fit: contain; margin-bottom: -4px; }
.content { grid-column: 1 / -1; margin-top: var(--space-xl); }
/* Questions */
.content details { border-top: 1px solid var(--card); }
.content details:last-of-type { border-bottom: 1px solid var(--card); }
.content summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; font-size: 19px; font-weight: 900; line-height: 1.35; text-wrap: pretty;
  -webkit-tap-highlight-color: transparent;
}
.content summary::-webkit-details-marker { display: none; }
.content summary::after {
  content: ""; flex: 0 0 14px; width: 14px; height: 14px; margin-right: 4px;
  border-right: 3px solid var(--turq); border-bottom: 3px solid var(--turq);
  transform: translateY(-3px) rotate(45deg);
}
.content details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.content summary:active { opacity: 0.75; }
@media (hover: hover) and (pointer: fine) { .content summary:hover { color: var(--turq); } }
.content details p { padding: 0 0 20px; max-width: 65ch; color: var(--text-2); }
.content details a { color: var(--turq); text-underline-offset: 3px; }
/* About */
.note p + p { margin-top: var(--space-md); }
.note p { font-size: 18px; color: var(--text-2); max-width: 60ch; }
.note a { color: var(--turq); text-underline-offset: 3px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .note a:hover { text-decoration-thickness: 2px; } }

/* ---------- footer ---------- */
footer { padding: 0 0 calc(var(--space-2xl) + env(safe-area-inset-bottom)); color: var(--text-2); font-size: 16px; }
footer .wrap > div { padding-top: var(--space-xl); border-top: 1px solid var(--card); }
.links { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 var(--space-md) -12px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--white); text-underline-offset: 3px; border-radius: 8px; }
.links a:active { opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: var(--turq); } }
.credit { max-width: 72ch; }
.copyright { margin-top: var(--space-md); }

/* ---------- wider ---------- */
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 900px) {
  .top-in { height: 80px; }
  .mark .word { height: 28px; }
  .page { padding: var(--space-4xl) 0; }
  /* the content keeps the shared left edge; Mignon takes a right column, level with the h1 */
  .page-in { grid-template-columns: minmax(0, 46rem) 1fr; column-gap: var(--space-4xl); align-items: start; }
  .content { grid-column: 1; }
  .pose { grid-column: 2; grid-row: 1 / 3; width: 200px; height: 200px; margin: 0; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .menu-btn { transition: background-color 160ms ease, transform 120ms var(--ease-out); }
  .menu[open] .menu-list { transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
  @starting-style { .menu[open] .menu-list { opacity: 0; transform: translateY(4px); } }
  .menu.closing .menu-list { opacity: 0; transform: translateY(4px); transition: opacity 120ms ease, transform 120ms ease; }
  .links a { transition: color 160ms ease, opacity 120ms ease; }
  .content summary { transition: color 160ms ease, opacity 120ms ease; }
  .content summary::after { transition: transform 200ms var(--ease-out); }
}
