/* Sumuhurta website: shared stylesheet. Values from the design handoff README and artboards.
   Page-scoped rules live inside each page file, prefixed with .pg-<slug>. */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;
  --ink: #F8F6F2;
  --night: #0B0E1F;
  --accent: #FFE0B4;          /* window accent */
  --accent-hi: #FFF0D6;       /* gold link hover */
  --pip: #FFD9A8;
  --selected: #FFE9CC;        /* selected text */
  --pay-fill: rgba(255,232,205,.92);
  --pay-fill-hover: #FFF3E0;
  --pay-text: #1A1420;
  --arc-track: rgba(255,255,255,.24);
  --hairline: rgba(255,255,255,.15);
  --list-hairline: rgba(255,255,255,.08);
  --edge: rgba(255,255,255,.10);         /* card inset hairline */
  --edge-strong: rgba(255,255,255,.12);
  --edge-tag: rgba(255,255,255,.16);
  --edge-ghost: rgba(255,255,255,.18);
  --edge-button: rgba(255,255,255,.20);
  --soft-fill: rgba(255,255,255,.05);    /* quiet card fill */
  --warn-fill: rgba(255,224,180,.06);
  --warn-edge: rgba(255,224,180,.22);
  --t92: rgba(248,246,242,.92);
  --t88: rgba(248,246,242,.88);
  --t86: rgba(248,246,242,.86);
  --t82: rgba(248,246,242,.82);
  --t78: rgba(248,246,242,.78);
  --t76: rgba(248,246,242,.76);
  --t72: rgba(248,246,242,.72);
  --t70: rgba(248,246,242,.70);
  --t66: rgba(248,246,242,.66);
  --t64: rgba(248,246,242,.64);
  --t62: rgba(248,246,242,.62);
  --t60: rgba(248,246,242,.60);
  --t55: rgba(248,246,242,.55);
  --t45: rgba(248,246,242,.45);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --display: 'SOFT' 20, 'WONK' 0;
  --gutter: clamp(20px, 4vw, 48px);
  --rhythm: clamp(24px, 5vh, 56px);
  --content-top: clamp(20px, 4vh, 48px);
  --gap-2col: clamp(24px, 4vw, 80px);
  --gap-dense: clamp(20px, 3vw, 44px);
  --r-pill: 999px;
  --r-card: 28px;
  --r-widget: 24px;
  --r-quick: 20px;
  --r-warn: 18px;
  --r-icon: 15px;
  --shadow-widget: 0 30px 60px rgba(0,0,0,.35);
  --shadow-card: 0 40px 80px rgba(0,0,0,.4);
  --shadow-icon: 0 12px 30px rgba(0,0,0,.4);
  --glow-pip: 0 0 10px rgba(255,217,168,.85);
  --glow-now: 0 0 8px rgba(255,255,255,.5);
  --body-size: clamp(15px, min(1.2vw, 2.2vh), 18px);
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; overflow: hidden; background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--night); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: rgba(255,233,204,.35); color: var(--selected); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid rgba(255,224,180,.8);
  outline-offset: 4px;
  border-radius: 3px;
}
.pill:focus-visible, .pager-prev:focus-visible, .pager-next:focus-visible, .menu-toggle:focus-visible { border-radius: var(--r-pill); outline-offset: 3px; }

/* ---------- Page frame ---------- */
.page { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.sky { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: linear-gradient(180deg, #2F4463 0%, #487A99 100%); }
.scroll {
  position: relative; z-index: 1; height: 100%; overflow: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.column {
  min-height: 100%; max-width: 1280px; margin: 0 auto;
  padding: 24px var(--gutter) 26px;
  display: flex; flex-direction: column;
}
.content {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--content-top); min-width: 0;
}
.foot { flex: none; margin-top: var(--rhythm); }

/* ---------- Sky layers (built by 10-sky.js) ---------- */
.sky > * { position: absolute; inset: 0; }
.sky-haze { background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255,255,255,.5), rgba(255,255,255,0) 70%); }
.sky-bloom {
  background: radial-gradient(ellipse 62% 48% at 50% 100%, rgba(255,214,168,.82), rgba(255,214,168,0) 70%);
  transform-origin: 50% 100%;
  animation: skyBreathe 6s ease-in-out infinite;
}
.sky-stars { transition: opacity .5s; }
.sky-star { position: absolute; display: block; border-radius: 50%; }
.sky-grain { background-image: url('/assets/grain.svg'); background-size: 240px 240px; opacity: .2; mix-blend-mode: overlay; }
.sky-grain-2 { background-position: 73px 118px; opacity: .03; mix-blend-mode: screen; }
.sky-scrim { top: auto; height: 55%; background: linear-gradient(180deg, rgba(11,14,31,0) 0%, rgba(11,14,31,.55) 100%); }
@keyframes skyBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  .sky-bloom { animation: none; }
  .sky-stars, .time-range, .time-range .mer, .pager-prev, .pager-next { transition: none; }
}

/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; flex: none; }
.brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
/* The app's brand block: the tagline sits under the lockup, Archivo 10, kerning 1, .62 */
.tagline { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .1em; line-height: 1.55; color: var(--t62); text-wrap: balance; }
.brand img { width: 28px; height: 28px; display: block; }
.wordmark { font-family: var(--serif); font-weight: 400; font-variation-settings: var(--display); font-size: 19px; letter-spacing: .26em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--t62); }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid rgba(255,224,180,.6); padding-bottom: 3px; }
.menu-toggle {
  display: none; appearance: none; -webkit-appearance: none;
  background: none; border: 1px solid var(--edge-ghost); color: var(--ink);
  border-radius: var(--r-pill); padding: 10px 16px; cursor: pointer;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
}
.menu-toggle:hover { border-color: rgba(255,255,255,.4); }
@media (max-width: 820px) {
  .js .menu-toggle { display: inline-flex; align-items: center; position: relative; z-index: 6; }
  .js .nav-links { display: none; }
  .js .nav-links.open {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    position: fixed; inset: 0; z-index: 5; padding: 96px var(--gutter) 40px;
    background: rgba(11,14,31,.9);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    font-size: 14px; letter-spacing: .24em;
  }
  .js .nav-links.open a { padding: 4px 0; }
  .js .nav-links.open a[aria-current="page"] { padding-bottom: 5px; }
  .js .brand, .js .nav-pill { position: relative; z-index: 6; }
  .js body.menu-open .scroll { overflow: hidden; }
}

/* ---------- Type ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--t86); }
.eyebrow .pip, .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--pip); box-shadow: var(--glow-pip); flex: none; display: inline-block; }
.eyebrow.small { font-size: 11px; gap: 10px; }
.eyebrow.small .pip { width: 6px; height: 6px; box-shadow: 0 0 8px rgba(255,217,168,.8); }
.eyebrow + .h1 { margin-top: 16px; }
.h1 {
  font-family: var(--serif); font-weight: 300; font-variation-settings: var(--display); font-optical-sizing: auto;
  font-size: clamp(34px, min(5vw, 8vh), 76px); line-height: 1.04; letter-spacing: -.012em;
  margin: 0; text-wrap: balance;
}
.h1.long { font-size: clamp(32px, min(4.2vw, 6.6vh), 62px); line-height: 1.06; }
/* Home H1: the artboard's 8.4vh bound overflows a 3-line headline at 1280x720 and 1440x900;
   14.4vh - 60px reaches the same 84px cap at 1000px height and shrinks faster below it. */
.h1.home { font-size: clamp(34px, min(5.4vw, 14.4vh - 60px), 84px); line-height: 1.02; }
.h2 { font-family: var(--serif); font-weight: 300; font-variation-settings: var(--display); font-optical-sizing: auto; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; margin: 0; }
.display { font-family: var(--serif); font-weight: 300; font-variation-settings: var(--display); font-optical-sizing: auto; }
.body { font-size: var(--body-size); line-height: 1.6; color: var(--t88); max-width: 54ch; text-wrap: pretty; }
.body.wide { max-width: 58ch; }
.h1 + .body { margin-top: clamp(14px, 2.6vh, 24px); }
.body + .body { margin-top: 14px; }
.dense h2, .dense .h2 { font-family: var(--serif); font-weight: 300; font-variation-settings: var(--display); font-optical-sizing: auto; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; margin: 0; }
.dense p { font-size: 14px; line-height: 1.58; color: var(--t82); margin: 12px 0 0; text-wrap: pretty; }
.dense p + p { margin-top: 10px; }
.smallprint { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--t55); }
.note { font-size: 13px; line-height: 1.6; color: var(--t62); }
.label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--t60); }
.link { color: var(--accent); border-bottom: 1px solid rgba(255,224,180,.4); padding-bottom: 2px; }
.link:hover { color: var(--accent-hi); }

/* Big time range: Fraunces 300, meridiem at .4em, en dash between */
.time-range {
  font-family: var(--serif); font-weight: 300; font-variation-settings: var(--display); font-optical-sizing: auto;
  line-height: 1; letter-spacing: -.02em;
  display: flex; align-items: baseline; flex-wrap: wrap;
  color: var(--ink); transition: color .6s;
}
.time-range .mer { font-size: .4em; margin-left: .05em; color: var(--t55); transition: color .6s; }
.time-range .dash { margin: 0 .16em; opacity: .6; font-weight: 200; }
.time-range.open { color: var(--accent); }
.time-range.open .mer { color: rgba(255,224,180,.62); }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: var(--r-pill);
  background: var(--pay-fill); color: var(--pay-text);
  font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  border: 0; cursor: pointer; transition: background .2s, border-color .2s;
}
.pill:hover { background: var(--pay-fill-hover); color: var(--pay-text); }
.pill.small { padding: 11px 18px; font-size: 12px; letter-spacing: .06em; }
.pill.medium { padding: 13px 20px; }
.pill.ghost { background: none; border: 1px solid var(--edge-ghost); color: var(--ink); padding: 12px 19px; font-weight: 400; }
.pill.ghost:hover { background: none; border-color: rgba(255,255,255,.4); color: var(--ink); }

/* ---------- Surfaces ---------- */
.card {
  position: relative; overflow: hidden; border-radius: var(--r-widget);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.card::before, .grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url('/assets/grain.svg'); background-size: 240px 240px;
  opacity: .2; mix-blend-mode: overlay;
}
.grain { position: relative; overflow: hidden; }
.card > *, .grain > * { position: relative; }
.card.r28 { border-radius: var(--r-card); }
.card.r20 { border-radius: var(--r-quick); }
.card.soft { background: var(--soft-fill); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.card.soft::before { content: none; }
.card.lifted { box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-widget); }
.card.lifted.r28 { box-shadow: inset 0 0 0 1px var(--edge-strong), var(--shadow-card); }
.warning { padding: 18px 20px; border-radius: var(--r-warn); background: var(--warn-fill); box-shadow: inset 0 0 0 1px var(--warn-edge); }

/* ---------- Layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--gap-2col); align-items: center; width: 100%; }
.grid-2.end { align-items: end; }
.grid-2.start { align-items: start; }
.dense-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--gap-dense); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags > * { padding: 8px 13px; border-radius: var(--r-pill); border: 1px solid var(--edge-tag); font-size: 12px; color: var(--t86); }
.row { display: flex; align-items: center; flex-wrap: wrap; }

/* ---------- Day line (built by 20-dayline.js) ---------- */
.dayline { width: 100%; }
.dayline-top { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--t64); }
.dayline-track { position: relative; height: 68px; margin-top: 10px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.dayline-track.interactive { cursor: ew-resize; }
.dayline-inner, .dayline-ticks { position: absolute; left: 6px; right: 6px; top: 0; bottom: 0; }
.dayline-ticks { left: 0; right: 0; }
.dayline-tick { position: absolute; top: 22px; width: 1.4px; height: 6px; border-radius: 1px; background: rgba(255,255,255,.22); transform: translate(-50%, -50%); display: block; }
.dayline-notch { position: absolute; top: 22px; left: 55%; width: 1px; height: 20px; background: rgba(255,224,180,.3); transform: translate(-50%, -50%); display: block; }
.dayline-label { position: absolute; top: 46px; transform: translateX(-50%); font-size: 11px; letter-spacing: .02em; color: var(--accent); white-space: nowrap; line-height: 1.2; }
.dayline-sunset { position: absolute; top: 46px; transform: translateX(-50%); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,224,180,.5); white-space: nowrap; line-height: 1.2; }
@media (max-width: 600px) {
  /* Phone widths: the app's 9.5pt edge labels, and the sunset label yields to the crowded window labels */
  .dayline-top { font-size: 10px; letter-spacing: .14em; }
  .dayline-sunset { display: none; }
}
.dayline-now { position: absolute; top: 62px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--glow-now); transform: translate(-50%, -50%); display: block; }

/* ---------- Foot row ---------- */
.foot-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  margin-top: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.foot-row > :first-child { justify-self: start; }
.foot-row > :last-child { justify-self: end; text-align: right; }
.foot-link { color: var(--t62); }
.foot-link:hover { color: var(--ink); }
.clock { color: var(--t72); letter-spacing: .24em; font-size: 13px; white-space: nowrap; }
.foot-hint { color: var(--t45); font-size: 12px; letter-spacing: 0; text-transform: none; }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; gap: 14px; }
.pager-prev, .pager-next {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--edge-button);
  background: none; color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px;
  transition: opacity .2s, border-color .2s;
}
.pager-prev:hover, .pager-next:hover { border-color: rgba(255,255,255,.4); }
.pager-prev.is-end, .pager-next.is-end { opacity: .3; cursor: default; }
.pager-prev.is-end:hover, .pager-next.is-end:hover { border-color: var(--edge-button); }
[data-pager] > .screen[aria-hidden="true"] { display: none; }

/* ---------- Narrow viewports ---------- */
@media (max-width: 600px) {
  .foot-row { gap: 12px; }
  .foot-hint { font-size: 11px; }
}
