/* fortune & fable: stylesheet
   Colours live in the :root block below. Change them there and the whole site follows. */

:root {
  --bg: #14110e;        /* page background (dark ink) */
  --bg-alt: #1a1612;    /* alternate section background */
  --line: #2e261d;      /* thin dividing lines */
  --card: #221c16;      /* picture frame background */
  --ink: #efe6d3;       /* main text (cream) */
  --muted: #c9bda5;     /* secondary text */
  --accent: #c99a4b;    /* brass: buttons and links */
  --accent-ink: #14110e;/* text on brass buttons */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #e3b866; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 { font-size: clamp(44px, 8vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
h3 { font-size: 26px; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 8px; }
.more-link { color: var(--accent); font-weight: 500; padding: 12px 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.brand img { height: 52px; width: auto; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 28px; }
.brand em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { padding: 12px 14px; font-size: 15px; }
.site-nav a.button { margin-left: 8px; }

.button { display: inline-block; padding: 14px 26px; font-weight: 600; background: var(--accent); color: var(--accent-ink); border-radius: 2px; }
.button:hover { background: #e3b866; color: var(--accent-ink); }
.button-small { padding: 12px 20px; font-size: 15px; }
.button-outline { background: transparent; color: var(--ink); border: 1px solid #5a4630; font-weight: 500; padding: 13px 25px; }
.button-outline:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 88px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hero-text .lead { max-width: 520px; color: var(--muted); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-photo { flex: 1 1 380px; min-width: 0; }
.hero-photo img { width: 100%; height: 520px; object-fit: cover; object-position: 55% 55%; background: var(--card); }

/* ---------- featured pieces ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--card); }
.card p { font-size: 15px; color: var(--muted); }
.card a.etsy { padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--accent); }

.cards-four { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }

/* ---------- commissions ---------- */
.commissions { border-top: 1px solid var(--line); }
.commissions .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.commissions .text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.commissions .text p { max-width: 560px; color: var(--muted); }

/* ---------- workbench ---------- */
.bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.bench figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bench img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--card); }
.bench figcaption { font-size: 15px; color: var(--muted); }

.gallery-title { margin: 64px 0 24px; font-size: 32px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--card); }
.gallery a:hover img { opacity: 0.88; }

/* ---------- about + contact ---------- */
.about .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.about .col { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.about .col h2 { margin-bottom: 8px; }
.about .col p { color: var(--muted); }
.about .col a.line { padding: 10px 0; }
.about .col a.mail { color: var(--accent); font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: #b9ad96; }
.site-footer img { height: 150px; width: auto; }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
  .hero-photo img { height: 320px; }
  .site-nav a.button { margin-left: 0; }
}
