/* The divieight Crowd Favorite — starter page.
   Colours, fonts and the wordmark follow divieight.com's /styles.css.
   Fonts are served from static/fonts (SIL Open Font License; see
   static/fonts/LICENSE.txt). */

@font-face{
  font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;
  src:url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
}
@font-face{
  font-family:Karla;font-style:normal;font-weight:400;font-display:swap;
  src:url("fonts/Karla-400.ttf") format("truetype");
}
@font-face{
  font-family:Karla;font-style:normal;font-weight:600;font-display:swap;
  src:url("fonts/Karla-600.ttf") format("truetype");
}

/* Contrast ratios are against --paper (#F6F4EF). */
:root{
  --ink:#14212A;     /* 14.92:1 */
  --slate:#2E4451;   /*  9.27:1 */
  --teal:#1F5A5E;    /*  7.12:1 */
  --brass:#A8792C;   /*  3.51:1 — wordmark only (logotype, WCAG 1.4.3 exempt) */
  --paper:#F6F4EF;   /* background */
  --stone:#DCD7CC;   /* rule above the footnote (decorative) */
  --mute:#5A6A73;    /*  5.10:1 */

  --d:"Instrument Serif",Georgia,serif;
  --b:Karla,system-ui,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--b);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  min-height:100svh;
  display:flex;flex-direction:column;
}

.page{
  flex:1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:18px;
  width:100%;max-width:680px;margin:0 auto;
  padding:48px 16px 32px;
  text-align:center;
}

/* Wordmark: same markup and rules as divieight.com's .logo, .logo-mark, .tm. */
.logo{
  font-family:var(--d);font-size:23px;letter-spacing:-.01em;
  color:var(--ink);line-height:1;
  margin-bottom:6px;
}
.logo span{color:var(--brass)}
.logo-mark{height:30px;width:auto;vertical-align:-7px;margin-right:9px}
.tm{
  font-family:var(--b);font-size:9px;font-weight:600;color:var(--mute);
  vertical-align:super;margin-left:1px;letter-spacing:.02em;
}

h1{
  font-family:var(--d);font-weight:400;
  font-size:clamp(34px,5.1vw,56px);line-height:1.05;letter-spacing:-.015em;
  max-width:20ch;text-wrap:balance;
}

.intro{font-size:17px;color:var(--slate)}

.ask{font-size:18px;line-height:1.45;color:var(--ink);max-width:34em;text-wrap:balance}
.ask strong{font-weight:600}

/* Footnote marker: a small raised asterisk that links to the footnote. */
.fn-ref{font-size:.7em;line-height:0;vertical-align:super}
.fn-ref a{
  color:var(--teal);text-decoration:none;font-weight:600;
  padding:0 3px;
}
.fn-ref a:hover{text-decoration:underline}
.fn-ref a:focus-visible,.foot :focus-visible{outline:2px solid var(--teal);outline-offset:2px}

/* Locations: one line where it fits (it needs about 420px at 17px). On a
   phone it wraps between names, never inside one, and each dot stays with
   the name before it so no line starts with a dot. */
.places{font-size:17px;font-weight:600;color:var(--teal);line-height:1.6;text-wrap:balance}
.places span{white-space:nowrap}

.opens{font-size:16px;color:var(--slate)}

/* Small print and footnote: same size, 14px floor. */
.small{font-size:14px;line-height:1.55;color:var(--mute)}

.foot{
  width:100%;max-width:680px;margin:0 auto;
  padding:18px 16px 32px;
  border-top:1px solid var(--stone);
}
