/* =========================================================
   Pottery Lab — minimal, single-column, editorial.
   Plain CSS, no build step.
   ========================================================= */

:root {
  --bg:      #fbfaf8;   /* faintly warm white */
  --text:    #26221e;   /* warm near-black */
  --muted:   #6f6a5e;   /* secondary text — darkened for WCAG AA (~4.7:1 on --bg; was #8c8478) */
  --faint:   #cfc7ba;   /* hairlines */
  --accent:  #b1572f;   /* terracotta — the one brand nod */
  --accent-deep: #8f441f;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --col: 600px;          /* content column — tighter line measure (~66–72 chars) */
  --gap: clamp(2.25rem, 5vw, 3.25rem);  /* space between sections */
  --radius: 12px;        /* card corners — avatar, video */
  --t: .15s ease;        /* standard interaction transition */

  /* type scale — intentional steps; two small sizes instead of four */
  --text-meta: 0.875rem;   /* 14px — captions, labels, footer, link chips */
  --text-sm:   0.9375rem;  /* 15px — nav, client list */
  --text-h2:   1.2rem;     /* ~19px — section headings */
  --text-lede: 1.3rem;     /* ~21px — intro lede */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding: 2.25rem clamp(1.25rem, 5vw, 2rem) 4rem;
}

/* ---------- Links ---------- */
a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color var(--t);
}
a:hover { color: var(--accent-deep); text-decoration: underline; }

strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 10;
  background: var(--text); color: var(--bg);
  padding: .5rem .85rem; border-radius: 8px;
}

/* ---------- Header / nav ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-bottom: clamp(2.75rem, 7vw, 4.5rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}
.brand-mark {
  width: 1.2em;
  height: 1.2em;
  display: block;
}
.brand:hover { color: var(--text); text-decoration: none; }

.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0; padding: 0;
}
.nav a {
  color: var(--muted);
  font-size: var(--text-sm);
}
.nav a:hover { color: var(--text); text-decoration: none; }

/* Narrow screens: stack the header so the 4-item nav can't clip */
@media (max-width: 32rem) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
  }
}

/* ---------- Intro ---------- */
.intro { margin-bottom: var(--gap); }
.avatar {
  display: block;
  width: clamp(200px, 42vw, 240px);
  height: auto;
  aspect-ratio: 1278 / 1460;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--faint);
  margin-bottom: 1.75rem;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: lowercase;
  margin: 0 0 1rem;
}

.lede { font-size: var(--text-lede); margin: 0 0 1rem; }
.intro p { margin: 0 0 1rem; }

/* ---------- Section blocks ---------- */
.block {
  margin-top: var(--gap);
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid var(--faint);
  scroll-margin-top: 4.5rem;
}
h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  margin: 0 0 1rem;
}
.block > p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.block > p.clients {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-bottom: 1.25rem;
}

/* ---------- Em-dash lists ---------- */
.dash { list-style: none; margin: 0; padding: 0; }
.dash > li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .7rem;
}
.dash > li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.dash.work > li { margin-bottom: 1.4rem; }
.dash.work > li:last-child { margin-bottom: 0; }

/* ---------- Selected work: video embeds ---------- */
/* Click-to-load facade: a poster + play button that swaps in the real
   YouTube/Vimeo iframe (.video-frame) only when pressed. See script.js. */
.video { margin: 1.1rem 0 .25rem; }

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1ebe1;
  cursor: pointer;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, opacity .2s ease;
}
.video-facade:hover img,
.video-facade:focus-visible img { transform: scale(1.03); opacity: .94; }

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(38, 34, 30, .68);
  display: grid;
  place-items: center;
  transition: background var(--t), transform var(--t);
}
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play { background: var(--accent); transform: scale(1.06); }
.video-play::before {       /* play triangle */
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;         /* optical centering inside the circle */
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  display: block;
}
.video-cap {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: var(--text-meta);
}

/* ---------- Selected work: link chips ---------- */
.links-label {
  display: block;
  margin: 1rem 0 .5rem;
  color: var(--muted);
  font-size: var(--text-meta);
}
.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.work-links > li { margin: 0; padding: 0; }
.work-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .7rem;
  border: 1px solid var(--faint);
  border-radius: 999px;
  color: var(--accent);
  font-size: var(--text-meta);
  line-height: 1.2;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.work-links a::after {
  content: "↗";
  font-size: .82em;
  color: var(--muted);
  transition: color var(--t);
}
.work-links a:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(177, 87, 47, .06);
}
.work-links a:hover::after { color: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  .video-facade img,
  .video-play { transition: none; }
  .video-facade:hover img,
  .video-facade:focus-visible img { transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--gap);
  padding-top: 1.5rem;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: var(--text-meta);
}
.site-footer p { margin: 0; }
