/* Horse Meet's public pages: the same warm cream, ink and sun yellow as the app, in the app's typeface (Onest). */
:root {
  --ground: #F4EFE6;
  --card: #FFFFFF;
  --raised: #FBF8F2;
  --ink: #27231D;
  --dim: #6E675B;
  --faint: #8C8578;
  --line: #E6DFD2;
  --sun: #FFC83D;
  --sun-soft: #FFF1C9;
  --sun-ink: #3A2B00;
  --coral: #C23E27;
  --coral-soft: #FCE3DD;
  --leaf: #23805A;
  --leaf-soft: #E3F3EA;
  --focus: #2B5FB3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1D1E21;
    --card: #292B2F;
    --raised: #303237;
    --ink: #F3F3F1;
    --dim: #B3B5BA;
    --faint: #93969C;
    --line: #3A3C41;
    --sun: #FFC83D;
    --sun-soft: #3B3320;
    --sun-ink: #3A2B00;
    --coral: #FF8A73;
    --coral-soft: #44282A;
    --leaf: #6FD3A2;
    --leaf-soft: #213A30;
    --focus: #8DB4FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #1D1E21; --card: #292B2F; --raised: #303237; --ink: #F3F3F1; --dim: #B3B5BA; --faint: #93969C;
  --line: #3A3C41; --sun-soft: #3B3320; --coral: #FF8A73; --coral-soft: #44282A; --leaf: #6FD3A2; --leaf-soft: #213A30;
  --focus: #8DB4FF; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Top bar: the horse, the name, the pages, and the language switch. */
.top { padding: 18px 0 8px; }
.top .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.lang { margin-left: auto; display: flex; gap: 2px; background: var(--card); border-radius: 999px; padding: 3px; }
.lang a, .lang span { font-size: 14px; font-weight: 700; padding: 4px 11px; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--ink); color: var(--ground); }
nav.pages { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 4px; }
nav.pages a { flex: none; font-size: 14.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--card); text-decoration: none; white-space: nowrap; }
nav.pages a[aria-current="page"] { background: var(--sun); color: var(--sun-ink); }

/* Page heading. */
header.title { padding: 26px 0 8px; }
header.title h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 800; }
header.title p { margin: 0; color: var(--dim); font-size: 16px; }

main { padding-bottom: 40px; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -0.015em; margin: 38px 0 10px; font-weight: 800; scroll-margin-top: 16px; }
h3 { font-size: 18px; margin: 24px 0 6px; font-weight: 700; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin: 0 0 6px; }
li::marker { color: var(--faint); }
strong { font-weight: 700; }
small, .note { color: var(--dim); font-size: 15px; }

/* The short version at the top of a long page. */
.summary { background: var(--card); border-radius: 22px; padding: 20px 22px 8px; margin: 18px 0 8px; }
.summary h2 { margin-top: 0; font-size: 19px; }
.summary ul { padding-left: 20px; }

.callout { background: var(--sun-soft); border-radius: 18px; padding: 16px 18px; margin: 18px 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.warn { background: var(--coral-soft); }

.badge { display: inline-block; background: var(--ink); color: var(--ground); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 8px; vertical-align: 2px; }

/* A path through the app's menus: Me → Settings → Delete account. */
.path b { display: inline-block; background: var(--card); border-radius: 9px; padding: 0 9px; margin: 2px 0; font-weight: 700; white-space: nowrap; }

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15.5px; background: var(--card); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 700; background: var(--raised); }
.table-scroll { overflow-x: auto; }

/* Forms (deletion, contact). */
.panel { background: var(--card); border-radius: 24px; padding: 22px; margin: 18px 0; }
.panel h2 { margin-top: 0; }
label { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 6px; }
input[type=email], input[type=password], input[type=text], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--raised);
  border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--sun); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin-top: 16px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--coral); flex: none; }
button {
  font: inherit; font-weight: 800; font-size: 17px; border: 0; border-radius: 999px; padding: 14px 24px; margin-top: 18px;
  background: var(--ink); color: var(--ground); cursor: pointer; min-height: 52px;
}
button.danger { background: var(--coral); color: #fff; }
button.quiet { background: transparent; color: var(--dim); text-decoration: underline; padding: 14px 10px; }
button[disabled] { opacity: 0.45; cursor: not-allowed; }
.status { margin: 14px 0 0; font-weight: 600; min-height: 1px; }
.status.bad { color: var(--coral); }
.status.good { color: var(--leaf); }
.done { background: var(--leaf-soft); border-radius: 18px; padding: 16px 18px; font-weight: 600; }
[hidden] { display: none !important; }

/* Home page. */
.hero { padding: 34px 0 6px; }
.hero img { width: 88px; height: 88px; border-radius: 24px; display: block; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 9vw, 60px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); }
/* At night a yellow band behind light letters muddies them, so the words turn yellow instead. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { background: none; color: var(--sun); } }
:root[data-theme="dark"] .hero h1 em { background: none; color: var(--sun); }
.hero p.lede { font-size: 19.5px; line-height: 1.5; color: var(--dim); margin: 0 0 18px; max-width: 34em; }
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 26px 0; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards a { display: block; background: var(--card); border-radius: 20px; padding: 16px 18px; text-decoration: none; }
.cards a strong { display: block; font-size: 17px; }
.cards a span { color: var(--dim); font-size: 15px; line-height: 1.45; display: block; margin-top: 2px; }
.cards a:hover { box-shadow: inset 0 0 0 2px var(--sun); }

footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--dim); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .grow { flex: 1 1 100%; }
