/* Kynlo town pages (use case 28) — server-rendered, no SPA CSS.
   Studio by day, Concierge by night (docs/KYNLO-CANON.md rule 5): the page
   flips at 18:00 by the reader's clock, like the app. html[data-dress] is set
   by a two-line inline script; without JavaScript the page stays in day. */

@font-face { font-family: "Cormorant Garamond"; src: url("/brand/fonts/CormorantGaramond-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/brand/fonts/CormorantGaramond-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/brand/fonts/CormorantGaramond-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: hsl(45 30% 98%);
  --card: #ffffff;
  --ink: hsl(40 9% 12%);
  --ink-soft: hsl(40 6% 33%);
  --ink-quiet: hsl(40 5% 40%);
  --rule: hsl(40 18% 87%);
  --accent: hsl(14 58% 37%);        /* terracotta, as text */
  --accent-fill: hsl(14 54% 40%);   /* terracotta, as a button */
  --on-accent: #ffffff;
  --chip: hsl(40 25% 94%);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
html[data-dress="night"] {
  --paper: hsl(150 7% 9%);
  --card: hsl(150 6% 13%);
  --ink: hsl(45 28% 88%);
  --ink-soft: hsl(45 14% 74%);
  --ink-quiet: hsl(45 9% 66%);
  --rule: hsl(150 5% 22%);
  --accent: hsl(39 55% 64%);        /* champagne, as text */
  --accent-fill: hsl(39 51% 60%);
  --on-accent: hsl(150 7% 9%);
  --chip: hsl(150 6% 17%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.kt-wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 72px; }
.kt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 16px; border-bottom: 1px solid var(--rule); }
.kt-brand { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 28px; color: var(--ink); text-decoration: none; line-height: 1; }
.kt-top nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; margin-left: 14px; display: inline-block; padding: 10px 0; }

.kt-crumbs { font-size: 14px; color: var(--ink-quiet); margin: 18px 0 0; }
.kt-crumbs a { color: var(--ink-soft); }
.kt-eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 22px 0 6px; font-weight: 600; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 7vw, 48px); line-height: 1.06; margin: 0 0 12px; letter-spacing: -0.01em; }
.kt-lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 10px; }
.kt-checked { font-size: 14.5px; color: var(--ink-quiet); margin: 0 0 18px; }
.kt-checked strong { color: var(--ink-soft); font-weight: 600; }

.kt-intents { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; padding: 0; list-style: none; }
.kt-intents a { display: inline-block; padding: 10px 14px; min-height: 44px; border-radius: 999px; background: var(--chip); color: var(--ink); text-decoration: none; font-size: 15px; border: 1px solid var(--rule); }
.kt-intents a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kt-intents .n { color: inherit; opacity: 1; font-variant-numeric: tabular-nums; margin-left: 6px; font-size: 13.5px; }

h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; margin: 38px 0 6px; }
.kt-h2-note { font-size: 15px; color: var(--ink-quiet); margin: 0 0 14px; }

.kt-day { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin: 22px 0 8px; }
.kt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kt-card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 16px 16px 14px; }
.kt-card h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 0 0 4px; }
.kt-when { font-weight: 600; font-size: 15.5px; margin: 0 0 4px; color: var(--ink); }
.kt-tags { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.kt-what { margin: 0 0 8px; color: var(--ink); }
.kt-facts { margin: 0 0 10px; padding: 0; list-style: none; font-size: 15px; color: var(--ink-soft); display: grid; gap: 3px; }
.kt-facts b { color: var(--ink); font-weight: 600; }
.kt-src { font-size: 13.5px; color: var(--ink-quiet); margin: 0 0 12px; }
.kt-src a { color: var(--ink-soft); }
.kt-plan { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.kt-plan:hover { filter: brightness(1.05); }

.kt-empty { background: var(--card); border: 1px dashed var(--rule); border-radius: 16px; padding: 16px; color: var(--ink-soft); }

.kt-signup { margin: 44px 0 0; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 18px 16px; }
.kt-signup h2 { margin: 0 0 6px; font-size: 26px; }
.kt-signup p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; }
.kt-signup label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.kt-signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.kt-signup input[type=email] { flex: 1 1 220px; min-height: 46px; padding: 10px 14px; font-size: 16px; border-radius: 12px; border: 1px solid var(--ink-quiet); background: var(--paper); color: var(--ink); }
.kt-signup button { min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15.5px; cursor: pointer; }
.kt-signup .fine { font-size: 13.5px; color: var(--ink-quiet); margin: 10px 0 0; }
.kt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.kt-towns { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kt-towns a { font-size: 17px; }
.kt-foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-quiet); }
.kt-foot a { color: var(--ink-soft); margin-right: 12px; }
.kt-foot p { margin: 0 0 10px; }

@media (min-width: 720px) {
  .kt-wrap { padding: 28px 24px 96px; }
  .kt-card { padding: 20px 22px 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .kt-plan { transition: filter .15s ease; }
}

/* Tap targets: every link a thumb can reach gets 44px of height (canon 6). */
.kt-brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.kt-top nav a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.kt-crumbs a, .kt-src a, .kt-towns a, .kt-foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; vertical-align: middle; }
.kt-src, .kt-crumbs { line-height: 1.4; }
.kt-src a, .kt-crumbs a { margin: -10px 0; }
.kt-crumbs a { min-width: 0; }
.kt-card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.kt-crumbs a { padding: 0 4px; margin-left: -4px; margin-right: -4px; }
.kt-crumbs a { min-width: 44px; justify-content: center; }
