/* ==========================================================================
   Raw Beauty Woodcrafts
   Palette is deliberately quiet: the wood in the photographs supplies the
   colour, the page supplies the silence. Single accent is moss, for the
   living tree rather than the finished plank.
   ========================================================================== */

:root {
  --paper:  #F2F1ED;
  --panel:  #E8E6DF;
  --ink:    #201D18;
  --muted:  #6B665B;
  --rule:   #C9C5BA;
  --moss:   #4E5A3E;
  --moss-lift: #67764F;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shell: 1180px;

  --t--1: 0.8125rem;
  --t-0:  1.0625rem;
  --t-1:  1.25rem;
  --t-2:  1.6rem;
  --t-3:  2.25rem;
  --t-4:  3rem;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-0);
  line-height: 1.6;
  font-synthesis-weight: none;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--moss-lift); }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 20; }


/* --- masthead ----------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.15rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(var(--t-2), 3.2vw, var(--t-3));
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: var(--t--1);
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.nav { display: flex; gap: clamp(1rem, 3vw, 2.1rem); }
.nav a {
  font-size: var(--t--1);
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--moss); color: var(--moss); }

/* --- hero --------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 36;
}

.hero__lede {
  font-size: var(--t-1);
  color: var(--muted);
  margin-top: 1.6rem;
  max-width: 40ch;
  line-height: 1.5;
}

.hero__stack { display: grid; gap: 1rem; }
.hero__stack img { border-radius: 2px; object-fit: cover; width: 100%; }
.hero__stack img:first-child { aspect-ratio: 4 / 5; }
.hero__stack img:last-child { aspect-ratio: 5 / 4; }
@media (min-width: 900px) {
  .hero__stack {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .hero__stack img:first-child { grid-row: span 2; }
  .hero__stack img:last-child { transform: translateY(1.75rem); }
}

/* --- generic sections --------------------------------------------------- */

.band {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
.band--sunk { background: var(--panel); }

.band__head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.band__head h2 { font-size: var(--t-3); }
.band__head p { margin-top: 0.85rem; color: var(--muted); }

.page-head { padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 3vw, 2.25rem); }
.page-head h1 { font-size: clamp(2.25rem, 5.5vw, var(--t-4)); }
.page-head p { margin-top: 1rem; color: var(--muted); font-size: var(--t-1); line-height: 1.5; }

/* --- gallery ------------------------------------------------------------ */

.pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 2rem 1.5rem;
}

.piece { margin: 0; }
.piece img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--panel);
  border-radius: 2px;
}
.band--sunk .piece img { background: #E0DDD4; }
.piece figcaption {
  margin-top: 0.65rem;
  font-size: var(--t--1);
  color: var(--muted);
  line-height: 1.45;
}
.piece figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: var(--t-0);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* --- split (about) ------------------------------------------------------ */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 0.85fr 1.15fr; }
  .split--flip > :first-child { order: 2; }
}
.split img { border-radius: 2px; width: 100%; object-fit: cover; }
.split img.frame-tall { aspect-ratio: 4 / 5; max-height: 34rem; }
.split img.frame-wide { aspect-ratio: 3 / 2; }

.prose { font-size: var(--t-0); }
.prose h3 a { color: var(--ink); text-decoration-color: var(--rule); }
.prose h3 a:hover { color: var(--moss); text-decoration-color: currentColor; }
.prose h3 {
  font-size: var(--t-2);
  margin-top: 2.25rem;
  margin-bottom: 0.7rem;
}
.prose h3:first-child { margin-top: 0; }

/* --- contact ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.detail-list { margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.detail-list div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.detail-list dt {
  font-size: var(--t--1);
  letter-spacing: 0.05em;
  color: var(--muted);
}
.detail-list dd { margin: 0; }
.detail-list a { font-size: var(--t-1); }

/* --- calls to action ---------------------------------------------------- */

.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--t-0);
  background: var(--moss);
  color: var(--paper);
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  border: 1px solid var(--moss);
}
.cta:hover { background: var(--moss-lift); border-color: var(--moss-lift); color: var(--paper); }

.cta--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.cta--quiet:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* --- footer ------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: var(--t--1);
  color: var(--muted);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  align-items: baseline;
}
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
