:root {
  --paper: #faf9f6;
  --ink: #121212;
  --muted: #77736b;
  --line: #dedbd4;
  --soft: #efede8;
  --accent: #c85c35;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--mono); font-size: 13px; }
button, input { font: inherit; }
button { color: inherit; }
.page-shell { width: min(1120px, calc(100% - 48px)); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: -.03em; }
.brand img { width: 31px; height: 31px; object-fit: contain; }
.today { color: var(--muted); font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
main { flex: 1; }
.intro { padding: clamp(70px, 11vw, 130px) 0 62px; display: block; }
.eyebrow, .panel-label { margin: 0 0 18px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { width: 100%; margin-bottom: 24px; font: 400 clamp(43px, 7vw, 82px)/.93 var(--serif); letter-spacing: -.06em; }
h1 em { color: var(--accent); font-style: italic; }
.location-row { display: flex; align-items: center; justify-content: flex-start; gap: 9px; color: var(--muted); font-size: 11px; }
.location-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.focus-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 26px 0 34px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.clock { display: block; font-size: clamp(35px, 6vw, 72px); letter-spacing: -.09em; line-height: .95; }
.next-prayer { padding-left: 40px; border-left: 1px solid var(--line); }
.next-line { display: flex; align-items: baseline; gap: 18px; }
.next-line strong { font: 400 clamp(25px, 3.2vw, 40px) var(--serif); letter-spacing: -.04em; }
.next-line span { color: var(--accent); font-size: 12px; white-space: nowrap; }
.next-meta { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.schedule-section { padding: 70px 0 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font: 400 26px var(--serif); letter-spacing: -.04em; }
.section-heading span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.prayer-card { min-height: 170px; padding: 18px 14px 15px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.prayer-card:last-child { border-right: 0; }
.prayer-card.is-next { background: var(--ink); color: var(--paper); }
.prayer-card.is-next .prayer-state { color: #aaa69d; }
.prayer-card.is-past { color: #aaa69d; }
.prayer-state { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.prayer-time { margin: 0; font-size: clamp(17px, 2.2vw, 25px); letter-spacing: -.08em; }
.prayer-name { margin: 0 0 5px; font: 400 20px var(--serif); letter-spacing: -.04em; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 14px 0 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
.site-footer img { width: 42px; height: 42px; object-fit: contain; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a { justify-self: end; }
.site-footer a:hover { color: var(--accent); }
.location-dialog { width: min(430px, calc(100% - 32px)); padding: 31px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
.location-dialog::backdrop { background: rgba(18,18,18,.22); backdrop-filter: blur(2px); }
.location-dialog h2 { margin: 0 0 28px; font: 400 33px var(--serif); letter-spacing: -.05em; }
.location-dialog label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.location-dialog input { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); outline: 0; background: transparent; color: var(--ink); }
.close-dialog { position: absolute; top: 17px; right: 20px; border: 0; background: transparent; font-size: 25px; cursor: pointer; font-family: Georgia, serif; }
.city-results { margin-top: 10px; }
.city-option { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.city-option:hover { color: var(--accent); }
.city-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.dialog-note { margin: 28px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
@media (max-width: 720px) {
  .page-shell { width: min(100% - 32px, 560px); }
  .intro { display: block; padding: 65px 0 45px; }
  .location-row { margin-top: 34px; }
  .focus-panel { grid-template-columns: 1fr; gap: 28px; }
  .next-prayer { padding: 23px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .schedule-section { padding: 54px 0 65px; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .prayer-card:nth-child(2n) { border-right: 0; }
  .prayer-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-footer { display: grid; grid-template-columns: 1fr auto; line-height: 2; }
  .site-footer img { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .site-footer span { grid-column: 1; grid-row: 2; }
  .site-footer a { grid-column: 2; grid-row: 2; }
}
