/* Layout: a log seen in cross section. A ring drawing stands next to the headline; the sections below
   follow like growth rings: light sapwood, a dark heartwood band for how we work, light again for contact.
   Fonts are self hosted (GDPR), no scripts, no external requests. */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F5EFE4;      /* cream */
  --field: #FBF8F2;      /* form fields */
  --ink: #3B2A20;        /* walnut */
  --ink-soft: #6B5646;   /* bark */
  --line: #D8C9B4;       /* sand */
  --ring: #BFA88B;       /* growth rings */
  --ember: #C8893A;      /* the dot, focus, underlines */
  --band: #3B2A20;       /* heartwood band */
  --band-ink: #F5EFE4;
  --band-soft: #D8C9B4;
  --band-line: #5E4838;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1E1611; --field: #281E17; --ink: #F1E8DA; --ink-soft: #CDBBA4; --line: #4A382C; --ring: #6A5240;
    --ember: #D99B4C; --band: #2D2119; --band-ink: #F1E8DA; --band-soft: #CDBBA4; --band-line: #503C2F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1E1611; --field: #281E17; --ink: #F1E8DA; --ink-soft: #CDBBA4; --line: #4A382C; --ring: #6A5240;
  --ember: #D99B4C; --band: #2D2119; --band-ink: #F1E8DA; --band-soft: #CDBBA4; --band-line: #503C2F; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--ember); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.65rem; }
p { margin: 0; }

.wrap { width: min(70rem, 100%); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.eyebrow { font: 600 0.78rem/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.lead { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.55rem); line-height: 1.4; color: var(--ink-soft); max-width: 34em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { padding-block: 1.4rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { display: block; line-height: 0; color: var(--ink); }
.brand svg { height: 3.5rem; width: auto; }
.lm-sub { fill: var(--ink-soft); }
.lm-dot { fill: var(--ember); }
.site-nav { display: flex; gap: .4rem 1.6rem; flex-wrap: wrap; font-size: .95rem; font-weight: 500; }
.site-nav a { text-decoration-color: transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration-color: var(--ember); }

/* Hero */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-text { display: grid; gap: 1.4rem; min-width: 0; }
.hero-art { margin: 0; min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }
.rings path { fill: none; stroke: var(--ring); stroke-width: 1.3; }
.rings .late { stroke-width: 2.2; }
.rings .bark { stroke: var(--ink); stroke-width: 4; }
.rings .check { stroke: var(--ring); stroke-width: 1.3; stroke-linecap: round; }
.rings .pith { fill: var(--ember); }
.rings .leader { stroke: var(--ink-soft); stroke-width: 1.2; fill: none; }
.rings .label { fill: var(--ink-soft); font: 600 24px var(--body); letter-spacing: .14em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-top: .4rem; }
.btn {
  display: inline-block; font: 600 1rem/1 var(--body); padding: 1rem 1.5rem; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ember); color: #24180F; }
.mail { font-weight: 500; user-select: all; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: .9rem; max-width: 40rem; }
.make { border-top: 1px solid var(--line); }
.make-list { list-style: none; padding: 0; margin: clamp(2rem, 4vw, 3rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem); }
.make-list li { border-top: 2px solid var(--ink); padding-top: 1.1rem; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.make-list p { color: var(--ink-soft); max-width: 30em; }

/* Heartwood band */
.work { background: var(--band); color: var(--band-ink); }
.work .eyebrow, .work .lead { color: var(--band-soft); }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); }
.work h3 { font-size: 1.45rem; padding-bottom: .7rem; border-bottom: 1px solid var(--band-line); }
.work ul { list-style: none; margin: 0; padding: 0; }
.work li { padding-block: .8rem; border-bottom: 1px solid var(--band-line); }
.work li::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--ember); margin-right: .8rem; vertical-align: .15em; }
.work .label-note { margin-top: clamp(2rem, 4vw, 2.75rem); color: var(--band-soft); max-width: 40rem; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-text { display: grid; gap: 1rem; min-width: 0; }
.contact-text p { color: var(--ink-soft); }
.contact-form { display: grid; gap: 1.1rem; min-width: 0; }
.contact-form label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  font: 400 1rem/1.5 var(--body); color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 10px; padding: .8rem .95rem; width: 100%;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .9rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; border: 1px solid var(--ember); border-radius: 10px; padding: .8rem 1rem; font-weight: 500; }
.form-error:target { display: block; }
.preview-note { font-size: .9rem; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: .92rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer .brand svg { height: 2.8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

/* Legal pages */
.legal { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 7vw, 5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); margin-bottom: 1.2rem; }
.legal h2 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 2rem 0 .5rem; }
.legal p, .legal address, .legal ul { margin: 0 0 .9rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2rem; }
.legal article + article { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.lang-switch { display: flex; gap: 1.2rem; margin-bottom: 1.5rem; font-weight: 600; font-size: .95rem; }
.updated { color: var(--ink-soft); font-size: .92rem; margin-top: 2rem; }

@media (max-width: 52rem) {
  .hero .wrap, .contact .wrap, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 24rem; width: 100%; justify-self: center; order: -1; }
  .make-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .hero-art { max-width: 15rem; }
  .brand svg { height: 3rem; }
}
