@font-face {
  font-family: Inter;
  src: url("/loft21/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #172329;
  --slate: #293C42;
  --gold: #E8C78D;
  --paper: #f6f1e7;
  --muted: #d5d9d4;
  font: 100%/1.6 system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--gold); text-underline-offset: .23em; }
a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 4px;
}
.wrap { width: min(100% - 2rem, 64rem); margin-inline: auto; }
header { border-bottom: 1px solid #ffffff24; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { font: 1.25rem Georgia, serif; text-decoration: none; color: var(--paper); }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
main { min-height: 65vh; padding-block: clamp(2.5rem, 8vw, 6rem); }
.hero { padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3rem, 11vw, 7rem); line-height: .98; letter-spacing: -.055em; margin: 0 0 1.4rem; }
h2 { margin: 0 0 .6rem; font-size: 2rem; line-height: 1.15; }
p { margin: .4rem 0 1rem; max-width: 60ch; }
.hero p { font-size: 1.18rem; color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.card { background: var(--slate); border: 1px solid #ffffff2b; padding: clamp(1.2rem, 4vw, 2rem); border-radius: .6rem; }
.card p, .note { color: var(--muted); }
@media (min-width: 42rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: .3rem; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
form { max-width: 38rem; }
label { display: block; margin: 1rem 0 .3rem; font-weight: 650; }
input, textarea { display: block; width: 100%; padding: .8rem; font: inherit; color: var(--paper); border: 1px solid #a6b5ae; border-radius: .3rem; background: var(--slate); }
textarea { resize: vertical; }
.cf-turnstile { margin-block: 1rem; }
.downloads { padding-left: 1.1rem; }
.downloads a { display: inline-flex; align-items: center; min-height: 44px; }
.book-details { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem 2rem; }
.book-cover { display: block; width: min(100%, 16rem); height: auto; border-radius: .35rem; }
footer { border-top: 1px solid #ffffff24; padding-block: 1.2rem; color: var(--muted); }
.loft-footer { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; }
.loft-established { flex-shrink: 0; color: var(--paper); font: 650 clamp(.95rem, 2vw, 1.25rem)/1.15 Inter, system-ui, sans-serif; letter-spacing: -.03em; white-space: nowrap; }
.loft-established time { color: var(--gold); }

.loft-landing { --tagline-gap: clamp(1.2rem, 3vw, 2rem); font-family: Inter, system-ui, sans-serif; width: min(100% - 1.25rem, 88rem); min-height: auto; padding-block: clamp(2rem, 3vw, 2.5rem) var(--tagline-gap); }
.loft-hero { text-align: center; padding-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.loft-hero p { max-width: none; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2.5vw, 2.1rem); line-height: 1.3; }
.loft-hero .loft-label { color: var(--gold); text-transform: uppercase; letter-spacing: .035em; font-size: clamp(1rem, 2.2vw, 1.9rem); font-weight: 500; }
.loft-hero h1 { font: 650 clamp(3rem, 8vw, 5.75rem)/1.05 Inter, system-ui, sans-serif; letter-spacing: -.03em; text-transform: uppercase; margin: .25em 0; }
.loft-hero h1 span { color: var(--gold); }
.loft-tagline { max-width: none; margin: var(--tagline-gap) 0 0; color: var(--gold); text-align: center; font-size: clamp(.9rem, 1.6vw, 1.2rem); }
.loft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.65rem, 1.3vw, 1rem); }
.loft-card {
  position: relative;
  display: block;
  background: var(--slate);
  border: 1px solid #ffffff1f;
  border-radius: clamp(.85rem, 2vw, 1.5rem);
  padding: clamp(.8rem, 2.6vw, 1.65rem);
  color: var(--paper);
  text-decoration: none;
}
.loft-card:hover { border-color: var(--gold); }
.loft-card svg { display: block; width: clamp(1.35rem, 2.7vw, 2.25rem); height: auto; stroke: var(--gold); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-bottom: clamp(.55rem, 1.4vw, 1.1rem); }
.loft-card h2 { font: 500 clamp(1rem, 2.35vw, 1.75rem)/1.25 Inter, system-ui, sans-serif; }
.loft-card p { margin: 0; color: var(--muted); font-size: clamp(.875rem, 1.9vw, 1.45rem); line-height: 1.35; }
.loft-count { position: absolute; inset: clamp(.8rem, 2.6vw, 1.65rem) clamp(.8rem, 2.6vw, 1.65rem) auto auto; color: var(--gold); font: 650 clamp(1.15rem, 2.8vw, 2rem)/1 Inter, system-ui, sans-serif; }
.loft-admin { margin-top: clamp(.85rem, 1.7vw, 1.4rem); text-align: center; background: #233239; }
.loft-admin svg { margin-inline: auto; }
.loft-admin p { margin-inline: auto; }
.inbox-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1rem; }
.inbox-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.inbox-switcher { margin-bottom: 1rem; }
.inbox-switcher a[aria-current] { border-color: var(--gold); }
.inbox-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .35rem; }
.inbox-card h2 { margin-bottom: 0; }
.pending-count { border-radius: 50rem; padding: .2rem .48rem; color: var(--muted); background: var(--ink); font-size: .75rem; white-space: nowrap; }
.pending-count.has-pending { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); font-weight: 700; }
.inbox { display: grid; gap: .75rem; margin-bottom: 1rem; }
.inbox-message { white-space: pre-wrap; overflow-wrap: anywhere; }

.thursday-grid { margin-top: 1rem; }
.thursday-grid .loft-card { min-width: 0; }
.table-date { display: inline-flex; align-items: baseline; gap: .13em; margin-bottom: .55rem; font: 650 clamp(1.35rem, 3.4vw, 2.45rem)/1 Inter, system-ui, sans-serif; letter-spacing: -.045em; }
.table-month { color: var(--gold); text-transform: uppercase; }
.table-day { color: var(--paper); }
.weekly-menu-card h2, .menu-hero h1 { overflow-wrap: anywhere; }
.menu-hero h1 { font-size: clamp(2.1rem, 7vw, 4rem); }
.menu-dishes { padding-left: 1.4rem; }
.table-supplies { max-width: 40rem; padding: 0; margin: 0 0 2rem; list-style: none; }
.table-supplies li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #ffffff24; padding: .5rem 0; }
.table-supplies a { display: inline-flex; align-items: center; min-height: 44px; }
.supply-claimed { color: var(--gold); overflow-wrap: anywhere; }
.supply-strip { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.75rem); margin-top: .65rem; padding: clamp(.55rem, 1.5vw, .9rem); background: var(--slate); border: 1px solid #ffffff1f; border-radius: .85rem; }
.fuel-gauges { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .15rem; }
.fuel-item { min-width: 0; display: grid; justify-items: center; align-content: start; gap: .25rem; text-align: center; font-size: clamp(.625rem, 1.35vw, .8rem); line-height: 1.1; }
.fuel-segments { display: grid; gap: 2px; }
.fuel-square { width: clamp(.48rem, 1.15vw, .75rem); aspect-ratio: 1; background: var(--ink); border: 1px solid #e8c78d85; }
.fuel-square.is-lit { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 .35rem #e8c78d50; }
.is-unchecked .fuel-square { border-style: dashed; }
.contribute-button { justify-content: center; flex: none; padding-inline: clamp(.55rem, 2vw, 1.15rem); border-radius: 99rem; font-size: clamp(.72rem, 1.5vw, .95rem); white-space: nowrap; }
.loft-admin { padding-block: .7rem; }
.loft-admin svg { width: 1.25rem; margin-bottom: .25rem; }
.loft-admin h2 { font-size: 1.05rem; margin-bottom: .25rem; }
.loft-admin p { font-size: .85rem; }
select { display: block; width: 100%; min-height: 44px; padding: .5rem; font: inherit; color: var(--paper); background: var(--slate); border: 1px solid #a6b5ae; border-radius: .3rem; }
select:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.admin-claims li { margin-bottom: .75rem; }
.menu-paste { max-width: 38rem; margin-bottom: 1rem; }
.menu-paste label { margin-top: 0; }
.menu-paste [role="status"]:empty { margin: 0; }

@media (max-width: 22rem) {
  .supply-strip { flex-wrap: wrap; justify-content: flex-end; }
  .fuel-gauges { flex-basis: 100%; }
}
.lesson-prompt { margin-top: 0; font-size: .9rem; }
.around-table { max-width: 38rem; margin: 1.5rem 0; }
.table-lesson-number { color: #E8C78D; margin-inline-start: .35em; }
.around-table p:last-child { margin-bottom: 0; }
.weekly-lesson { min-width: 0; margin: 1.35rem 0; border: 1px solid #ffffff2b; border-radius: .55rem; }
.weekly-lesson legend { color: var(--gold); padding-inline: .4rem; font-weight: 650; }

/* Stone’s Table Design System v1.0 */
.stones-platform {
  --surface-elevated: #34484C;
  --text-primary: #D5DEDF;
  --border-gold: #8B7958;
  --paper: var(--text-primary);
  --muted: var(--text-primary);
  color: var(--paper);
}
.platform-hero { padding-block: clamp(1rem, 4vw, 3.5rem); }
.platform-hero h1 { max-width: 12ch; }
.platform-hero p { font-size: clamp(1.15rem, 3vw, 1.5rem); }
.platform-links { display: grid; margin-block: 1.75rem; border-top: 1px solid var(--border-gold); }
.platform-links a { display: grid; gap: .2rem; padding: 1rem .5rem; border-bottom: 1px solid var(--border-gold); text-decoration: none; }
.platform-links a:hover { background: var(--surface-elevated); }
.platform-links strong { font-size: 1.15rem; }
.platform-links a > span { color: var(--text-primary); }
.builder-grid { display: grid; gap: 1.25rem; }
.builder-grid > * { min-width: 0; }
.builder-grid aside > section { margin-bottom: 1rem; }
.builder-grid .card { border-color: var(--border-gold); }
.builder-editor { max-width: none; }
.builder-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0 .75rem; }
@media (min-width: 54rem) { .builder-grid { grid-template-columns: 2fr 1fr; align-items: start; } }

.loft-wordmark { color: #f6f1e7; white-space: nowrap; font: 650 1.08em/1 Inter, system-ui, sans-serif; letter-spacing: -.03em; }
.loft-wordmark > span { color: var(--gold); }
.loft-entry { gap: .4em; background: var(--slate); color: var(--paper); border: 1px solid var(--border-gold); }
.loft-entry:hover { background: var(--surface-elevated); }
.loft-home-link { color: inherit; text-decoration: none; }
.loft-home-link:hover { text-decoration: underline; }
