/* ============================================
   SEWING WITH TESS — site styles
   Feeling: clean art portfolio. White space,
   an elegant high-contrast serif, hairlines,
   quiet captions. A logbook, not a shop.
   ============================================ */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --gray: #767676;
  --hairline: #e3e3e3;
  --thread: #ff2d87;   /* the single thread of color — used sparingly */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 26px 32px;
  border-bottom: 1px solid var(--hairline);
}
.nav__logo {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none;
}
.nav__links { list-style: none; display: flex; gap: 30px; }
.nav__links a {
  text-decoration: none; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray);
}
.nav__links a:hover { color: var(--thread); }

/* ---------- hero ---------- */
.hero { padding: 12vh 32px 10vh; max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--thread); }
.hero__sub {
  margin-top: 28px; max-width: 520px;
  color: var(--gray); font-size: 1rem;
}

/* a single red thread line — the one motif */
.thread-line {
  width: 72px; height: 2px; background: var(--thread);
  margin: 34px 0 0;
}

/* ---------- section scaffolding ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--hairline); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 44px; gap: 20px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em;
}
.section-head .years {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--thread);
}
.section-note { max-width: 560px; color: var(--gray); margin: -28px 0 44px; }

/* ---------- work grid ---------- */
.work-grid {
  display: grid; gap: 40px 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.work {
  text-decoration: none; display: block;
}
.work__photo {
  aspect-ratio: 4 / 5;
  background: #f0f0f0;
  display: grid; place-items: center;
  color: #b5b5b5; font-size: 0.78rem;
  overflow: hidden;
}
.work__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s ease;
}
.work:hover .work__photo img { transform: scale(1.04); }
.work__caption {
  margin-top: 12px;
  font-size: 0.85rem;
}
.work__caption em { font-family: var(--font-display); font-style: italic; font-size: 1rem; }
.work__meta {
  display: block; color: var(--thread); font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px;
}

/* wider feature tile */
@media (min-width: 900px) {
  .work--wide { grid-column: span 2; }
  .work--wide .work__photo { aspect-ratio: 8 / 5; }
}

/* ---------- statement block ---------- */
.statement {
  padding: 90px 32px; max-width: 760px; margin: 0 auto; text-align: center;
}
.statement p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3; letter-spacing: -0.01em;
}
.statement .thread-line { margin: 34px auto 0; }

/* ---------- archive list rows ---------- */
.archive-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 24px;
  align-items: baseline;
  padding: 18px 4px; border-top: 1px solid var(--hairline);
  text-decoration: none;
}
.archive-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.archive-row:hover .archive-row__title { color: var(--thread); }
.archive-row__year { font-size: 0.8rem; color: var(--gray); letter-spacing: 0.08em; }
.archive-row__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.archive-row__kind {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray);
}
@media (max-width: 640px) {
  .archive-row { grid-template-columns: 70px 1fr; }
  .archive-row__kind { display: none; }
}

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: 300px 1fr; gap: 60px;
  align-items: start;
}
.about__photo {
  aspect-ratio: 3 / 4; background: #f0f0f0;
  display: grid; place-items: center; color: #b5b5b5; font-size: 0.78rem;
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about p { color: #333; margin-bottom: 14px; max-width: 560px; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--ink);
  padding: 56px 0 44px; text-align: center;
}
.footer__word { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.footer__tag { color: var(--gray); font-size: 0.85rem; }
.family { margin-top: 36px; font-size: 0.85rem; }
.family__label {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray); display: block; margin-bottom: 12px;
}
.family a { margin: 0 14px; text-decoration: none; border-bottom: 1px solid var(--thread); }
.family a:hover { color: var(--thread); }

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  /* nav: stack logo above the links so the title never collides */
  .nav {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 20px 20px 16px;
  }
  .nav__logo { white-space: nowrap; }
  .nav__links { gap: 22px; }
  /* hero + sections breathe a little less on small screens */
  .hero { padding: 8vh 20px 6vh; }
  .section { padding: 52px 0; }
  .statement { padding: 60px 20px; }
  .about { gap: 32px; }
}

/* ---------- utilities ---------- */
.center { text-align: center; }
