/* Founder Hours for Good. No external fonts, no requests. */
:root {
  --ivory: #F6F1E8;
  --parchment: #ECE4D6;
  --ink: #1B1A17;
  --graphite: #5C5750;
  --orange: #B5532A;
  --clay: #D9A58A;
  --hair: rgba(27, 26, 23, 0.14);
  --serif: "Iowan Old Style", "New York", Charter, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 62ch;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { background: var(--ivory); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration-color: var(--clay); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; margin: 0 0 0.5em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }
.muted { color: var(--graphite); }
.small { font-size: 0.9rem; }
.label { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.accent { color: var(--orange); }
hr.rule { border: 0; height: 1px; background: var(--hair); margin: 0; }
.rule-accent { width: 56px; height: 2px; background: var(--orange); border: 0; margin: 0 0 1.5rem; }

/* Top notice */
.notice-bar {
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.86rem;
  line-height: 1.4;
  padding: 0.6rem 1rem;
  text-align: center;
}
.notice-bar strong { color: var(--clay); font-weight: 600; }

/* Header */
.site-header { border-bottom: 1px solid var(--hair); background: var(--ivory); position: relative; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; }
.wordmark .arch { width: 18px; height: 26px; border: 1.5px solid var(--orange); border-radius: 9px 9px 0 0; border-bottom: 0; display: inline-block; }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--graphite); padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: 1px solid var(--hair); border-radius: 6px; padding: 0.45rem 0.7rem; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--hair); padding: 0.5rem 0 0.8rem; z-index: 10; }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 1.25rem; font-size: 1.05rem; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--orange); }
}

.wrap { width: min(var(--max), 100% - 2.5rem); margin: 0 auto; }
main { flex: 1; }
section { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0; }
section + section { border-top: 1px solid var(--hair); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.5; color: var(--ink); }
.hero { padding-top: clamp(3rem, 2rem + 5vw, 7rem); }
.hero .label { margin-bottom: 1.25rem; display: block; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { margin-top: 1.5rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card { border: 1px solid var(--hair); border-radius: 10px; padding: 1.5rem; background: var(--ivory); }
.card.tint { background: var(--parchment); border-color: transparent; }
.card h3 { margin-bottom: 0.4rem; }
.card .price { font-family: var(--serif); font-size: 2rem; margin: 0.6rem 0 0.2rem; }
.card .math { font-family: var(--sans); font-size: 0.85rem; color: var(--graphite); margin: 0; }
.card .meta { font-size: 0.85rem; color: var(--graphite); margin: 0 0 0.75rem; }

.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.9rem; }
.facts li { padding-left: 1.4rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 14px; border: 1.5px solid var(--orange); border-bottom: 0; border-radius: 5px 5px 0 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; align-items: baseline; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 1.6rem; color: var(--orange); line-height: 1; }

.panel { border-left: 2px solid var(--orange); padding: 0.25rem 0 0.25rem 1.25rem; margin: 1.5rem 0; }
.panel p:last-child { margin-bottom: 0; }

.btn { display: inline-block; font: inherit; font-size: 0.95rem; padding: 0.7rem 1.15rem; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); text-decoration: none; cursor: pointer; }
.btn:hover { background: #2a2824; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn.secondary:hover { border-color: var(--ink); }
.btn.accent { background: var(--orange); border-color: var(--orange); }
.btn.accent:hover { background: #a24a25; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

table { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); }
.table-scroll { overflow-x: auto; }

/* FAQ */
details { border-bottom: 1px solid var(--hair); padding: 0.9rem 0; max-width: 760px; }
details summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--orange); font-family: var(--sans); flex: none; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.75rem; }

/* Arch motif */
.arch-figure { position: relative; height: clamp(180px, 30vw, 320px); margin: 2rem 0 0; }
.arch-figure svg { width: 100%; height: 100%; display: block; }

/* Worksheet */
form.sheet { display: grid; gap: 1.4rem; max-width: 760px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { display: block; font-size: 0.85rem; color: var(--graphite); margin-bottom: 0.5rem; }
.field input[type="text"], .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: 8px; padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(181, 83, 42, 0.15); }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 620px) { .choices { grid-template-columns: 1fr; } }
.choice { border: 1px solid var(--hair); border-radius: 10px; padding: 0.9rem 1rem; cursor: pointer; display: block; background: var(--ivory); }
.choice:has(input:checked) { border-color: var(--orange); background: var(--parchment); }
.choice input { margin-right: 0.5rem; accent-color: var(--orange); }
.choice .name { font-family: var(--serif); font-size: 1.15rem; display: block; }
.choice .sub { font-size: 0.85rem; color: var(--graphite); display: block; margin-top: 0.2rem; }
.counter { font-size: 0.8rem; color: var(--graphite); text-align: right; }
.brief { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 1.5rem; font-family: var(--serif); white-space: pre-wrap; line-height: 1.5; font-size: 1.02rem; min-height: 14rem; }
.brief-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.notice { border: 1px solid var(--orange); border-radius: 10px; padding: 1rem 1.2rem; margin-top: 1.25rem; font-size: 0.95rem; background: rgba(181, 83, 42, 0.05); }
.notice strong { color: var(--orange); }
.status { font-size: 0.9rem; color: var(--graphite); min-height: 1.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--hair); padding: 2rem 0 2.5rem; font-size: 0.85rem; color: var(--graphite); }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.site-footer a { color: var(--graphite); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ivory); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

@media print { .notice-bar, .nav-toggle, .actions, .site-header { display: none; } body { background: #fff; } }
@media (prefers-reduced-motion: no-preference) {
  .arch-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s cubic-bezier(.2,.7,.2,1) forwards 0.3s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
