/* Artisan home (display preview) — restores the original editorial look:
   warm white canvas (#F5F3EC), deep green ink (#172B26 / #274B3B),
   serif display type. Self-contained; no framework, no JavaScript.
   Fluid at 320/390/1440: images keep their natural aspect ratio
   (object-fit: contain, height: auto) and nothing clips or overflows. */

:root {
  --canvas: #f5f3ec;
  --ink: #172b26;
  --ink-deep: #274b3b;
  --muted: #59645d;
  --line: rgb(23 43 38 / 0.15);
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink-deep);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--ink-deep);
  outline-offset: 4px;
}

.shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.wip-banner {
  background: var(--ink);
  color: var(--canvas);
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.5rem 1rem;
  text-align: center;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

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

.brand-logo {
  height: 72px;
  width: auto; /* natural ratio, no redraw */
  display: block;
}

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  margin-left: 1.5rem;
  padding-block: 0.25rem;
}

.site-nav a:hover {
  color: var(--ink-deep);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Hero: single group image, natural aspect; desktop image left + copy right */

.hero {
  border-bottom: 1px solid rgb(23 43 38 / 0.1);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  padding-block: 2rem;
}

.hero-media {
  margin: 0;
  min-width: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-copy h1 {
  margin: 0.75rem 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.15;
  overflow-wrap: break-word;
}

.byline {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.byline {
  font-weight: 600;
  color: var(--ink);
}

.lede {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  overflow-wrap: break-word;
}

.reference-note {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  border-left: 3px solid var(--ink-deep);
  padding-left: 0.75rem;
  overflow-wrap: break-word;
}

.source-line {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Process example: 2 columns on mobile, 4 on desktop */

.process {
  padding-block: 2.5rem;
  scroll-margin-top: 5rem;
}

.process h2 {
  margin: 0.75rem 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1.2;
}

.section-lede {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: break-word;
}

.process-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

.process-grid li {
  min-width: 0;
}

.process-grid a {
  display: block;
  border-radius: 0.5rem;
}

.process-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.step-num {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.process-grid h3 {
  margin: 0.25rem 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
}

.section-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-logo {
  height: 96px;
  width: auto; /* natural ratio, no redraw */
  display: block;
}

/* Desktop layout */

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3.5rem;
    padding-block: 3rem;
  }

  .hero-media img {
    max-height: 68vh;
  }

  .process {
    padding-block: 3.5rem;
  }

  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 400px) {
  .shell {
    width: min(100% - 1.25rem, 72rem);
  }
}
