/* Consistent 365 · consistent365.app
   One stylesheet for the whole site. Aurum by day: alabaster with amber, the mark an eclipse, Georgia for the
   headlines, letterspaced amber microlabels, hairlines. Nothing moves. */

:root {
  color-scheme: light;
  --ink: #ece8e1;
  --fg: #1d1a17;
  --muted: #5b5650;
  --faint: #67625b;
  --gold: #885811;
  --goldhi: #7d5010;
  --hair: rgba(136, 88, 17, 0.16);
  --ongold: #fffaf1;
  --void: #141210;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--goldhi); outline-offset: 3px; }
img, svg { max-width: 100%; }

.skip { position: absolute; left: -9999px; top: 12px; padding: 10px 14px; background: var(--gold); color: var(--ongold); border-radius: 3px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ---- the top of every page: the bar stays where it is and the page passes under it, frosted ---- */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(236, 232, 225, 0.72); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--hair); }
/* the side padding is the .wrap's: only the top and bottom are set here */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
/* a link from the menu stops a section just under the bar, never behind it */
section[id] { scroll-margin-top: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 18px; height: 18px; }
.brand b { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; color: var(--fg); }
.brand i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.32em; color: var(--gold); }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; color: var(--muted); text-decoration: none; white-space: nowrap; }
nav.main a:hover { color: var(--goldhi); }
.cta { display: inline-block; padding: 12px 22px; border-radius: 3px; background: var(--gold); color: var(--ongold); font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-decoration: none; white-space: nowrap; }

/* ---- type ---- */
.slab { font-size: 9px; font-weight: 600; letter-spacing: 0.34em; color: var(--gold); }
h1 { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1.06; margin: 18px 0 22px; text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; margin: 12px 0 14px; text-wrap: balance; }
.lede { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 52ch; margin: 0; }
h2.slab { font-family: var(--sans); line-height: 1.6; margin: 0; text-wrap: initial; }

/* ---- the four principles: named in the hero, two to a line (a line breaks only between its two), explained in
   Our Mission ---- */
.principles { max-width: none; }
.principles .ln { display: block; }
.principles .nb { white-space: nowrap; }
/* a section's words at the left and its place at the right (Our Mission, The Daily 10); stacked on a phone */
.beside { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.beside .slot-phone { justify-self: center; }
.mission-line { margin-top: 14px; }
.points { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--hair); max-width: 64ch; }
.point { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.point::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 10px; }
.point h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; margin: 0; }
.point p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 3px 0 0; }

/* ---- the badges' place, under the principles ---- */
.badges { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ---- the mark, drawn in the night's golds in the pages, set in amber by day ---- */
.brand svg circle, .lost svg circle { stroke: var(--gold); }
.brand svg circle:last-child, .lost svg circle:last-child { fill: var(--void); stroke: var(--goldhi); }

/* ---- places kept empty for now, each the size of what will stand there, so every word stands where it will ---- */
.slot-stores { flex: none; width: 232px; height: 38px; }
/* the menu's links still to come: their width and the gap before them, so the menu stands where it will */
.slot-links { flex: none; width: calc(246.61px + 22px); }
.slot-badge { width: 168px; height: 50.8px; }
.slot-phone { width: 300px; height: 620px; }
/* the hero's place beside the words: the room from 32 px past the words to 48 px inside the window's edge, as wide as
   687 px at most, drawn 620 px tall at that width and in proportion below it (to 0.62 px); main's width is the window's */
main { container-type: inline-size; }
.slot-trio { width: 100%; height: calc(620px * 0.78); }
.slot-trio { height: round(nearest, min(620px, calc(((min(100cqw, 1080px) - 112px) * 0.45 + (100cqw - min(100cqw, 1080px)) / 2) * 0.90247453)), 0.62px); }

/* ---- the home page ---- */
/* every section is also a .wrap (its side padding), so the vertical padding is set at the same weight, in longhand */
section.wrap { padding-top: 76px; padding-bottom: 76px; border-top: 1px solid var(--hair); }
section.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 52px; padding-bottom: 84px; border-top: 0; }

/* the ten goals, one to a row at every width, as wide as Our Mission's list and closed by a hairline like it */
.grid10 { display: grid; grid-template-columns: 1fr; max-width: 64ch; margin-top: 18px; border-bottom: 1px solid var(--hair); }
.goal { display: flex; gap: 16px; padding: 15px 0; border-top: 1px solid var(--hair); }
.goal .n { font-family: var(--serif); font-size: 18px; color: var(--gold); width: 30px; flex: none; padding-top: 1px; }
.goal b { display: block; font-weight: 500; }
.goal span { font-size: 14px; color: var(--muted); }

/* ---- the foot of every page ---- */
footer { padding: 36px 0 56px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--goldhi); }

/* ---- a wrong address ---- */
.lost { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 32px; }
.lost svg { width: 48px; height: 48px; }
.lost .slab { margin-top: 22px; }
.lost h1 { font-size: 38px; }
.lost .lede { text-align: center; }
.lost .cta { margin-top: 28px; }

/* ---- narrower windows: the bar's right-hand place grows taller, then the menu folds away, then the hero and Our
   Mission stack, their places under the words ---- */
@media (max-width: 1100px) {
  nav.main { gap: 16px; }
  .slot-stores { width: 160px; height: 50px; }
  .slot-links { width: calc(246.61px + 16px); }
}
@media (max-width: 1040px) {
  nav.main { display: none; }
}
@media (max-width: 960px) {
  section.hero { grid-template-columns: 1fr; gap: 44px; }
  .slot-trio { height: calc(620px * 0.8); }
  .beside { grid-template-columns: 1fr; gap: 44px; }
}

/* ---- a phone-width screen ---- */
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .top { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .brand b, .brand i { letter-spacing: 0.24em; }
  .cta { padding: 11px 14px; letter-spacing: 0.2em; }
  section[id] { scroll-margin-top: 68px; }
  nav.main { display: none; }
  .slot-trio { height: calc(620px * 0.58); }
  .points { margin-top: 24px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  section.wrap { padding-top: 52px; padding-bottom: 52px; }
  section.hero { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; padding-bottom: 56px; }
  footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}
