@font-face {
  font-family: 'DM Serif Text';
  src: url('./assets/dm-serif-text.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Text';
  src: url('./assets/dm-serif-text-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f8f4eb;
  --ink: #1d313d;
  --accent: #933823;
  --line: #25383f55;
  --pale: #fffaf0;
  --title: 'DM Serif Text', Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 'Instrument Sans', Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure, dd, dl { margin: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .75; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 0; padding: .5rem .75rem; background: var(--pale); z-index: 2; translate: 0 -120%; }
.skip:focus { translate: none; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .52rem; font: 700 1.53rem/1 var(--title); letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-icon { display: inline-block; width: .92rem; aspect-ratio: .63; border: 1.5px solid var(--accent); position: relative; }
.brand-icon::before { content: ''; position: absolute; inset: 1px 2px 1px 1px; background: var(--accent); clip-path: polygon(0 0,100% 15%,100% 85%,0 100%); }
.head nav, .footer nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); flex-wrap: wrap; }
.head nav a, .footer nav a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; white-space: nowrap; font-size: .88rem; font-weight: 600; }
.head nav a:last-child { color: var(--accent); }
.hero { background: var(--ink); color: var(--pale); border-bottom: 5px solid #c37654; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(2rem, 8vw, 7rem); padding-block: clamp(2rem, 5.4vw, 5rem); }
.hero-copy h1 { max-width: 10ch; }
.hero :focus-visible { outline-color: #edb292; }
.scope-prepare { display: inline-block; margin-top: 1.05rem; color: #f8cfb4; font-weight: 700; }
h1 { margin-block: .6rem 1rem; font: clamp(3.4rem, 7.05vw, 7rem)/.94 var(--title); letter-spacing: -.05em; }
.lead { max-width: 29rem; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.5; }
.action { display: inline-flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 50px; padding: .68rem 1rem; border: 2px solid var(--accent); background: var(--accent); color: var(--pale); font-weight: 700; line-height: 1.15; text-decoration: none; }
.action:hover { background: var(--pale); color: var(--accent); }
.action span { font-size: 1.24em; }
.scope-desk { background: var(--pale); color: var(--ink); padding: clamp(.7rem, 2.35vw, 1.55rem); }
.scope-desk h2 { font-size: clamp(1.25rem, 2.25vw, 1.85rem); margin: .1rem 0 .65rem; letter-spacing: -.015em; }
.scope-choices { list-style: none; margin: 0; padding: 0; }
.scope-choices li { border-top: 1px solid var(--line); }
.scope-choices li:last-child { border-bottom: 1px solid var(--line); }
.scope-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .08rem .65rem; align-items: center; padding: .61rem .45rem; min-height: 50px; line-height: 1.3; text-decoration: none; }
.scope-choice:hover { background: #f2e4d5; }
.scope-choice:focus-visible { outline-color: var(--accent); outline-offset: -2px; }
.scope-choice strong { color: var(--accent); font-size: 1.05rem; }
.scope-choice span:nth-child(2) { font-size: .87rem; }
.scope-choice .scope-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: 1.25rem; }
.guide { padding-block: clamp(1.9rem, 5vw, 4rem); }
.guide-inner, .quote { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(1.2rem, 7vw, 6rem); align-items: start; }
h2 { margin-block: .4rem .8rem; font: clamp(2.25rem, 4.6vw, 3.75rem)/1 var(--title); letter-spacing: -.045em; }
.guide dl div { display: grid; gap: .6rem; grid-template-columns: minmax(4rem,.27fr) minmax(0,1fr); padding: .55rem 0; border-top: 1px solid var(--line); }
.guide dl div:last-child { border-bottom: 1px solid var(--line); }
.guide dt { font-weight: 700; }
.quote { padding-block: clamp(2rem, 6vw, 4.5rem); }
.request-view .quote { padding-top: clamp(1.65rem, 5.6vw, 4.6rem); }
.request-view .quote h1 { font-size: clamp(2.7rem, 6.3vw, 5.6rem); margin-top: 0; }
.quote-prep { margin-top: 1rem; }
.quote-review { padding: .75rem .9rem; border-left: 3px solid var(--accent); background: var(--pale); }
#quote-preview-scope { display: block; margin-top: .38rem; font-weight: 700; }
#area { margin-top: .65rem; font-weight: 700; }
#quote-form { padding: clamp(.78rem, 2.15vw, 1.5rem); border: 1px solid var(--line); border-top: 4px solid var(--accent); background: #fffdf7; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-bottom: .95rem; }
.wide { grid-column: 1 / -1; }
.fields label { display: grid; align-content: start; min-width: 0; gap: .35rem; font-weight: 700; }
.fields input, .fields select, .fields textarea { min-width: 0; width: 100%; min-height: 46px; padding: .52rem .58rem; background: var(--pale); border: 1px solid var(--ink); border-radius: 0; font-weight: 400; }
.fields textarea { resize: vertical; }
.quote-measurements { min-width: 0; padding: .22rem .65rem; background: #f0e9da; }
.quote-measurements summary { padding: .65rem 0; min-height: 44px; color: var(--accent); font-weight: 700; cursor: pointer; }
.quote-measurements > label { margin-top: .7rem; }
.quote-measurements p { margin: .5rem 0; font-size: .87rem; }
.dimensions { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: .5rem; }
.fields small, [data-file-list] { font-weight: 400; overflow-wrap: anywhere; }
.form-status:not(:empty) { margin-bottom: .7rem; padding: .7rem; border: 1px solid currentColor; }
.form-status[data-state='error'] { color: var(--accent); }
.saved { border-top: 2px solid var(--accent); padding-top: .8rem; }
.saved h2 { font: 2rem/1 var(--title); margin: 0 0 .4rem; }
.saved p + p { margin-top: .4rem; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: 1rem; gap: .75rem 1.5rem; min-height: 82px; }

.prep-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1rem clamp(1.3rem, 6vw, 5rem); align-items: start; padding-block: 1.5rem 2.25rem; }
.prep-checklist section { padding-block: .6rem 1rem; border-bottom: 1px solid var(--line); }
.prep-checklist h2, .prep-sample h2 { font-size: clamp(1.5rem, 2.65vw, 2.35rem); }
.prep-sample { background: var(--ink); color: var(--pale); border-top: 5px solid #c37654; padding: .85rem 1.15rem 1.2rem; }
.prep-sample dl div { display: grid; grid-template-columns: minmax(4.25rem, .32fr) minmax(0, 1fr); gap: .6rem; padding: .45rem 0; border-top: 1px solid #ffffff36; }
.prep-sample dt { font-weight: 700; }
.prep-view .scope-options { max-width: 46rem; }

@media (max-width: 760px) {
  .container { width: calc(100% - 2rem); }
  .head { min-height: 62px; }
  .head nav { gap: .65rem; }
  .head nav a { font-size: .75rem; }
  .brand { font-size: 1.32rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.1rem; padding-block: 1.25rem 1.35rem; }
  .hero-copy h1 { margin-top: 0; margin-bottom: .55rem; max-width: none; }
  .scope-prepare { margin-top: .55rem; font-size: .92rem; }
  h1 { font-size: clamp(2.65rem, 10.4vw, 4.4rem); }
  .guide-inner, .quote, .prep-grid { grid-template-columns: 1fr; }
  .guide dl div:first-child { border-top: 0; }
}

@media (max-width: 520px) {
  .fields { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
  .container { width: calc(100% - 1.35rem); }
  .head { gap: .55rem; }
  .head nav { gap: .45rem; }
  .head nav a { font-size: .7rem; }
  .dimensions { grid-template-columns: 1fr 1fr; }
  .dimensions label:last-child { grid-column: 1 / -1; }
}
