:root {
  --bg: #f5efe6;
  --paper: #fffaf2;
  --ink: #241a12;
  --muted: #715f4f;
  --soft: #e8dccb;
  --line: rgba(68, 45, 28, .16);
  --wood: #a36a3f;
  --wood-dark: #6f4428;
  --green: #536b4d;
  --green-soft: #dce7d2;
  --shadow: 0 24px 70px rgba(72, 47, 28, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(163, 106, 63, .18), transparent 24rem),
    radial-gradient(circle at 90% 8%, rgba(83, 107, 77, .16), transparent 26rem),
    linear-gradient(180deg, #f5efe6 0%, #fffaf2 52%, #efe4d5 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    linear-gradient(rgba(36, 26, 18, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 26, 18, .026) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 80%);
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.site-header,
.hero,
.section,
.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffaf2;
  background: linear-gradient(135deg, var(--wood), var(--wood-dark));
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(111, 68, 40, .24);
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.04em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, .7);
  backdrop-filter: blur(16px);
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(163, 106, 63, .1);
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 50px;
}

.label {
  margin: 0 0 14px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .96;
  letter-spacing: -.05em;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
}

h3 {
  margin-bottom: 9px;
  font-size: 21px;
  letter-spacing: -.035em;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(68, 45, 28, .28);
}

.button.primary {
  color: #fffaf2;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 242, .72);
}

.hero-note {
  max-width: 520px;
  margin-top: 28px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 242, .68);
}

.hero-note span {
  height: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fffaf2;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.hero-note p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-card,
.work-details,
.material-card,
.selector-panel,
.request-card,
.process-card,
.note-card,
.footer {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 24px;
  border-radius: 34px;
}

.wood-preview {
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(111, 68, 40, .18), rgba(255, 250, 242, .72)),
    #e4c7a4;
}

.wood-board {
  position: absolute;
  border-radius: 24px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 8px, rgba(0,0,0,.035) 8px 14px),
    linear-gradient(135deg, #b97848, #7a4a2c);
  box-shadow: 0 24px 50px rgba(72, 47, 28, .22);
}

.board-one {
  width: 74%;
  height: 96px;
  left: 13%;
  top: 76px;
  transform: rotate(-4deg);
}

.board-two {
  width: 58%;
  height: 74px;
  right: 10%;
  bottom: 86px;
  transform: rotate(6deg);
}

.board-three {
  width: 34%;
  height: 120px;
  left: 14%;
  bottom: 52px;
  transform: rotate(3deg);
}

.selected-work {
  padding-top: 20px;
}

.selected-work p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.selected-work h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.selected-work span {
  color: var(--green);
  font-weight: 800;
}

.section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.7;
}

.works-layout,
.material-layout,
.request-layout {
  display: grid;
  grid-template-columns: 1fr .88fr;
  gap: 18px;
  align-items: start;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.work-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 250, 242, .64);
  box-shadow: 0 16px 44px rgba(72, 47, 28, .1);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.work-card:hover,
.work-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(83, 107, 77, .38);
  background:
    radial-gradient(circle at 12% 12%, rgba(83, 107, 77, .12), transparent 12rem),
    rgba(255, 250, 242, .9);
}

.work-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--green);
  font-weight: 950;
}

.work-card p,
.work-details p,
.material-card p,
.request-card p,
.process-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.work-details,
.material-card,
.request-card {
  padding: 26px;
  border-radius: 30px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.detail-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 760;
}

.selector-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 30px;
}

.control strong {
  display: block;
  margin-bottom: 12px;
}

.chip {
  margin: 0 6px 8px 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 242, .68);
  font-size: 14px;
  font-weight: 760;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.chip:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.chip.is-active {
  color: #fffaf2;
  background: var(--ink);
}

.material-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
}

.sample {
  min-height: 180px;
  border-radius: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 7px, rgba(0,0,0,.04) 7px 13px),
    linear-gradient(135deg, #b97848, #7a4a2c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

.sample.ash {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 7px, rgba(0,0,0,.03) 7px 13px),
    linear-gradient(135deg, #d8c29e, #a8895f);
}

.sample.walnut {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 7px, rgba(0,0,0,.08) 7px 13px),
    linear-gradient(135deg, #7b4b32, #3d241a);
}

.request-card small {
  display: block;
  min-height: 18px;
  margin-top: 12px;
  color: var(--green);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-card {
  padding: 22px;
  border-radius: 28px;
}

.process-card span {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffaf2;
  background: var(--wood-dark);
  font-weight: 900;
}

.footer {
  margin: 34px auto 48px;
  padding: 22px;
  border-radius: 24px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin-bottom: 0;
}

@media (max-width: 1040px) {
  .hero,
  .works-layout,
  .material-layout,
  .request-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 760px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 78px;
  }

  .work-grid,
  .process-grid,
  .material-card {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  .hero-card,
  .work-card,
  .work-details,
  .material-card,
  .request-card {
    border-radius: 24px;
  }
}
