/* Colors and fonts: change these to make the site yours. */
:root {
  --bg: #f6f1e8;
  --tint: #efe8dc;
  --card: #fcf9f3;
  --ink: #221d17;
  --ink-2: #5d5346;
  --ink-3: #776c5e;
  --line: rgba(34, 29, 23, 0.1);
  --accent: #8f3a28;        /* madder red: buttons and links */
  --accent-hover: #7a2f20;
  --dark: #26302c;          /* the visit band */
  --dark-ink: #ece6da;
  --dark-ink-2: #b9b4a8;
  --ochre: #c48a2c;
  --teal: #24504d;
  --linen: #d9cfbd;
  --rust: #9a4630;

  --font-body: "Karla", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Gloock", Georgia, serif;

  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: "Karla";
  src: url("fonts/karla-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Gloock";
  src: url("fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { top: 12px; color: var(--bg); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 21px; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 22px; height: 22px; fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.site-nav a:hover { color: var(--ink); background: var(--tint); }
.site-nav a[aria-current="true"] { color: var(--ink); }
.site-nav .nav-cta { margin-left: 8px; color: var(--card); background: var(--ink); padding: 8px 14px; }
.site-nav .nav-cta:hover { color: var(--card); background: #000; }
.menu-button { display: none; }

@media (max-width: 900px) {
  .menu-button {
    display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
    font: inherit; font-size: 15px; color: var(--ink); background: var(--card);
    border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav a:hover { background: none; }
  .site-nav .nav-cta { margin: 12px 0 0; text-align: center; border-radius: var(--radius); border: 0; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: var(--radius);
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}
.button:active { transform: scale(0.98); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); color: #fff; }
.button-quiet { background: var(--card); color: var(--ink); border-color: var(--line); }
.button-quiet:hover { background: var(--tint); color: var(--ink); }

/* Signature: a fabric swatch with pinked edges */
.swatch-chip {
  display: inline-block; flex: none; width: 20px; height: 22px;
  background: var(--ochre);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 87.5% 100%, 75% 84%, 62.5% 100%, 50% 84%, 37.5% 100%, 25% 84%, 12.5% 100%, 0 84%);
}
.swatch-teal { background: var(--teal); }
.swatch-linen { background: var(--linen); }
.swatch-rust { background: var(--rust); }

/* Hero */
.hero { padding: 48px 0 64px; min-height: min(calc(100svh - 64px), 880px); display: grid; align-items: center; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(40px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.lede { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--ink-3); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(40, 28, 12, 0.08); }
.hero-figure figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: 48px; }
.section-head h2, .visit h2 { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* Services: a two-column list, ruled like a ledger */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.services li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.services h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.services p { color: var(--ink-2); font-size: 16px; }

/* Recent work */
.work { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.work-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.work-item img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.work-wide img { aspect-ratio: 5 / 3; }
.work-wide { grid-row: span 1; }
.work-meta { padding: 20px 20px 24px; display: grid; gap: 8px; }
.work-meta h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.work-meta p { color: var(--ink-2); font-size: 15px; }
.work-meta .fabric { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; color: var(--ink-3); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: none; }
.steps li { padding-top: 20px; border-top: 2px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.step-number { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-3); }
.steps h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* Prices */
.prices-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.prices-layout .section-head { margin-bottom: 0; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; border-style: hidden; box-shadow: 0 0 0 1px var(--line); }
.price-table th, .price-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 16px; }
.price-table thead th { font-size: 14px; font-weight: 500; color: var(--ink-3); background: var(--tint); }
.price-table tbody th { font-weight: 500; }
.price-table td { color: var(--ink-2); white-space: nowrap; }
.price-table td:last-child { color: var(--ink); text-align: right; }
.price-table thead th:last-child { text-align: right; }
.price-table tbody tr:last-child > * { border-bottom: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.about .section-head { margin-bottom: 0; }
.about-text { display: grid; gap: 20px; font-size: 18px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin: 12px 0 0; }
.facts dt { font-size: 14px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 28px; color: var(--ink); line-height: 1.1; }

/* Visit */
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark a { color: var(--dark-ink); }
.section-dark a:hover { color: #fff; }
.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.visit-lead { margin-top: 16px; color: var(--dark-ink-2); font-size: 18px; max-width: 32rem; }
.visit address { font-style: normal; margin-top: 24px; line-height: 1.7; }
.text-link { display: inline-block; margin-top: 16px; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-size: 14px; color: var(--dark-ink-2); padding-bottom: 8px; }
.hours th, .hours td { padding: 14px 0; border-top: 1px solid rgba(236, 230, 218, 0.14); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--dark-ink-2); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact .section-head { margin-bottom: 0; }
.contact-alt { font-size: 16px !important; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.optional { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid rgba(34, 29, 23, 0.18); border-radius: var(--radius);
  padding: 10px 12px; min-height: 44px;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(143, 58, 40, 0.15); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 15px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Smaller screens */
@media (max-width: 1000px) {
  .services li { grid-template-columns: 1fr; gap: 8px; }
  .work { grid-template-columns: 1fr 1fr; }
  .work-wide { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 800px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .hero { padding: 40px 0 64px; }
  .hero-inner, .prices-layout, .about, .visit, .contact { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .lede { font-size: 18px; }
  .services { grid-template-columns: 1fr; }
  .facts { gap: 24px; }
  .quote-form { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 560px) {
  .work { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 12px; font-size: 15px; }
  .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; }
  .price-table td { white-space: normal; }
  .price-table td:last-child { white-space: nowrap; }
  .facts { grid-template-columns: 1fr 1fr; }
  .actions .button { flex: 1 1 100%; }
}
