
@layer reset, base, layout, components, pages;
/* Declare layer order first — controls specificity cascade */
@layer reset{

/* Modern CSS reset — minimal, opinionated */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  line-height: 1.5;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

:target {
  scroll-margin-block: 5ex;
}
}
@layer base{

/* Design tokens and global base styles */

:root {
  /* Color */
  --color-bg: #fafaf8;
  --color-bg-subtle: #f0ede8;
  --color-text: #111110;
  --color-text-muted: #6b6860;
  --color-accent: #5c4b3b;
  --color-accent-light: #e8ddd5;
  --color-border: #e2ddd8;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;

  /* Type scale — fluid with clamp() */
  --text-xs:   clamp(0.75rem,  0.7rem + 0.2vw,  0.875rem);
  --text-sm:   clamp(0.875rem, 0.84rem + 0.2vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw,  1.375rem);
  --text-xl:   clamp(1.25rem,  1.1rem + 0.75vw,  1.75rem);
  --text-2xl:  clamp(1.5rem,   1.2rem + 1.5vw,   2.5rem);
  --text-3xl:  clamp(2rem,     1.5rem + 2.5vw,   3.5rem);
  --text-4xl:  clamp(2.5rem,   1.8rem + 3.5vw,   5rem);

  /* Spacing — 4px base scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width-content: 72rem;
  --max-width-prose: 68ch;

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 220ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark mode token overrides */
[data-theme="dark"] {
  --color-bg: #141412;
  --color-bg-subtle: #1e1d1b;
  --color-text: #f0ede8;
  --color-text-muted: #9c9790;
  --color-accent: #c8956a;
  --color-accent-light: #2a2118;
  --color-border: #2e2c29;
}

/* Global base styles */

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Headings — editorial serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  max-width: var(--max-width-prose);
}

a {
  color: inherit;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast) ease;
}

  a:hover {
    text-decoration-color: var(--color-text);
  }

/* Prose content (inside .prose or article) */
  .prose h2 { margin-block: var(--space-12) var(--space-4); }
  .prose h3 { margin-block: var(--space-8) var(--space-3); }
  .prose p + p { margin-block-start: var(--space-4); }

  .prose ul,.prose ol {
    padding-inline-start: var(--space-6);
    max-width: var(--max-width-prose);
  }

    :is(.prose ul,.prose ol) li + li { margin-block-start: var(--space-2); }

  .prose blockquote {
    border-inline-start: 2px solid var(--color-accent);
    padding-inline-start: var(--space-6);
    color: var(--color-text-muted);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    margin-block: var(--space-8);
  }

  .prose code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-bg-subtle);
    padding: 0.1em 0.35em;
    border-radius: 3px;
  }

/* Focus visible — accessible, non-intrusive */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Visually hidden utility — a11y */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
}
@layer layout{

/* Page-level layout primitives */

/* Outer wrapper — constrains and centers content */
.l-wrapper {
  width: 100%;
  max-width: var(--max-width-content);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

  @media (width >= 64rem) {
.l-wrapper {
    padding-inline: var(--space-10);
}
  }

/* Site frame — sticky header, scrollable main, footer */
.l-site {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
}

/* Generic stack — vertical rhythm */
.l-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Section spacing */
.l-section {
  padding-block: var(--space-12);
}

/* Two-column: sidebar + main (media query: global layout shift) */
.l-sidebar {
  display: grid;
  gap: var(--space-12);
}

  @media (width >= 64rem) {
.l-sidebar {
    grid-template-columns: 18rem 1fr;
    align-items: start;
}
  }

/* Auto-fill grid — for project grids, writing lists */
.l-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}

/* Prose column — centered, comfortable reading width */
.l-prose {
  max-width: var(--max-width-prose);
  margin-inline: auto;
}
}
@layer components{

/* Component styles — scoped, container-query driven where applicable */

/* ─── Site Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--color-border);
}

  .site-header .l-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-4);
  }

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.site-logo__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Nav toggle — mobile only */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease;
}

  .nav-toggle:hover {
    border-color: var(--color-text-muted);
  }

.nav-toggle__close { display: none; }
.nav-toggle__open  { display: block; }

.site-header[data-menu-open] .nav-toggle__open  { display: none; }
.site-header[data-menu-open] .nav-toggle__close { display: block; }

/* Desktop nav */
.site-nav {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

  .site-nav a {
    font-size: var(--text-base);
    text-decoration: none;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    transition: color var(--duration-fast) ease;
  }

    :is(.site-nav a):hover,[aria-current="page"]:is(.site-nav a) {
      color: var(--color-text);
    }

/* Mobile nav panel */
@media (width < 64rem) {
  .nav-toggle {
    display: flex;
  }

  #primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-block-end: 1px solid var(--color-border);
    padding: var(--space-6);
    z-index: 1;
  }

  .site-header[data-menu-open] #primary-nav {
    display: block;
  }

  .site-nav {
    flex-direction: column;
    gap: 0;
  }

    .site-nav li {
      border-block-start: 1px solid var(--color-border);
    }

      :is(.site-nav li):last-child {
        border-block-end: 1px solid var(--color-border);
      }

    .site-nav a {
      display: block;
      padding-block: var(--space-4);
      font-size: var(--text-base);
    }
}


/* ─── Theme toggle ────────────────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
  flex-shrink: 0;
}

  .theme-toggle:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
  }

/* Show sun in dark mode, moon in light mode */
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }

[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }


/* ─── Site Footer ─────────────────────────────────────────── */

.site-footer {
  border-block-start: 1px solid var(--color-border);
  padding-block: var(--space-10);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

  .site-footer .l-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

.site-footer__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-xl);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

  .footer-social__link:hover {
    color: var(--color-text);
  }


/* ─── Project Card ────────────────────────────────────────── */

/* Container established on the grid, card adapts inside */
.project-card-wrap {
  container-type: inline-size;
  container-name: card;
}

.project-card {
  display: grid;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
}

  .project-card:hover .project-card__image img {
    transform: scale(1.02);
  }

.project-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-subtle);
  border-radius: 4px;
}

  .project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-base) var(--ease-out);
  }

.project-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.project-card__category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.project-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: normal;
}

.project-card__summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Wide card variant — when container is wide enough, go horizontal */
@container card (width >= 36rem) {
  .project-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-8);
  }
}


/* ─── Post Card (Writing) ─────────────────────────────────── */

.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--duration-fast) ease;
}

  .post-card:hover {
    border-color: var(--color-text-muted);
  }

    .post-card:hover .post-card__title {
      color: var(--color-accent);
    }

    .post-card:hover .post-card__image img {
      transform: scale(1.02);
    }

.post-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-bg-subtle);
}

  .post-card__image.post-card__image--placeholder {
    background: linear-gradient(135deg, var(--color-bg-subtle) 0%, var(--color-accent-light) 100%);
  }

  .post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-base) var(--ease-out);
  }

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
}

.post-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: normal;
  line-height: 1.25;
  transition: color var(--duration-fast) ease;
}

.post-card__summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}


/* ─── Gallery Card ───────────────────────────────────────── */

.gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color var(--duration-fast) ease;
}

  .gallery-card:hover {
    border-color: var(--color-text-muted);
  }

    .gallery-card:hover .gallery-card__image img {
      transform: scale(1.03);
    }

.gallery-card__image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--color-bg-subtle);
}

  .gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-base) var(--ease-out);
  }

.gallery-card__count {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: var(--space-1) var(--space-2);
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.gallery-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
}

.gallery-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: normal;
  line-height: 1.2;
}

.gallery-card__location {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}


/* ─── Gallery detail ─────────────────────────────────────── */

.gallery-hero {
  padding-block: var(--space-12) var(--space-10);
  display: grid;
  gap: var(--space-4);
}

.gallery-back {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) ease;
}

  .gallery-back:hover { color: var(--color-text); }

.gallery-hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: normal;
  line-height: 1.1;
}

.gallery-hero__description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 54ch;
}

.gallery-hero__meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

  .gallery-hero__meta span + span::before,.gallery-hero__meta span + time::before,.gallery-hero__meta time + span::before {
    content: "·";
    margin-inline-end: var(--space-4);
  }

.photo-grid {
  columns: 2;
  column-gap: var(--space-3);
  padding-block-end: var(--space-16);
}

  @media (width >= 48rem) {

.photo-grid {
    columns: 3;
}
  }

  @media (width >= 72rem) {

.photo-grid {
    columns: 4;
}
  }

.photo-grid__item {
  break-inside: avoid;
  margin-block-end: var(--space-3);
  border-radius: 3px;
  overflow: hidden;
  background-color: var(--color-bg-subtle);
}

  .photo-grid__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--duration-fast) ease;
  }

  .photo-grid__item figcaption {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    padding: var(--space-2) var(--space-3);
    line-height: 1.4;
  }


/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  padding-block: var(--space-12) var(--space-20);
}

  @media (width >= 64rem) {

.hero {
    padding-block-start: var(--space-12);
}
  }

.hero__eyebrow {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-block-end: var(--space-4);
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-block-end: var(--space-8);
}

.hero__body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-block-end: var(--space-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}


/* ─── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
  letter-spacing: 0.02em;
}

.btn--primary {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

  .btn--primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
  }

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
}

  .btn--secondary:hover {
    background-color: var(--color-bg-subtle);
  }


/* ─── Section label ───────────────────────────────────────── */

.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-block-end: var(--space-8);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-end: var(--space-10);
}


/* ─── Tag / Pill ──────────────────────────────────────────── */

.tag {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-bg-subtle);
  border-radius: 2px;
  color: var(--color-text-muted);
}


/* ─── Design Seed Card ────────────────────────────────────── */

.seeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-5);
  padding-block-end: var(--space-20);
}

.seed-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-block-start: 3px solid var(--seed-accent, var(--color-accent));
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

  .seed-card:hover {
    background-color: var(--color-bg-subtle);
    border-color: var(--color-text-muted);
    border-block-start-color: var(--seed-accent, var(--color-accent));
  }

.seed-card[data-category="layout"]      { --seed-accent: #7c8f4e; }
.seed-card[data-category="typography"]  { --seed-accent: #4a7ba0; }
.seed-card[data-category="color"]       { --seed-accent: #b06b3a; }
.seed-card[data-category="motion"]      { --seed-accent: #7a5e8a; }
.seed-card[data-category="interaction"] { --seed-accent: #3d8a7a; }
.seed-card[data-category="philosophy"]  { --seed-accent: #8a6b3d; }

.seed-card__category {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--seed-accent, var(--color-text-muted));
}

.seed-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: normal;
  line-height: 1.25;
}

.seed-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.seed-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-2);
}


/* ─── Divider ─────────────────────────────────────────────── */

.divider {
  border: none;
  border-block-start: 1px solid var(--color-border);
  margin-block: var(--space-16);
}
}
@layer pages{

/* Page-specific styles — overrides for individual pages */

/* ─── Case Study detail ───────────────────────────────────── */

.case-study-hero {
  padding-block: var(--space-16) var(--space-12);
}

  .case-study-hero .case-study-hero__category {
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-block-end: var(--space-4);
  }

  .case-study-hero .case-study-hero__title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: normal;
    line-height: 1.1;
    margin-block-end: var(--space-6);
  }

  .case-study-hero .case-study-hero__summary {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 54ch;
  }

.case-study-meta {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-10);
  border-block: 1px solid var(--color-border);
  margin-block-end: var(--space-16);
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}
  .case-study-meta__item dt {
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-block-end: var(--space-1);
  }

  .case-study-meta__item dd {
    font-size: var(--text-sm);
    font-family: var(--font-serif);
  }

.case-study-image {
  width: 100%;
  margin-block: var(--space-12);
  background-color: var(--color-bg-subtle);
  border-radius: 4px;
  overflow: hidden;
}

  .case-study-image img {
    width: 100%;
    height: auto;
  }


/* ─── Design Seeds listing ────────────────────────────────── */

.seeds-page-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: normal;
  line-height: 1.1;
  margin-block-end: var(--space-4);
}

.seeds-page-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-block-end: 0;
}


/* ─── Design Seed detail ──────────────────────────────────── */

.seed-hero {
  padding-block: var(--space-16) var(--space-12);
  display: grid;
  gap: var(--space-4);
}

.seed-back {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) ease;
}

  .seed-back:hover { color: var(--color-text); }

.seed-hero__category {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--seed-accent, var(--color-text-muted));
  margin-block-end: 0;
}

.seed-hero__category[data-category="layout"]      { --seed-accent: #7c8f4e; }
.seed-hero__category[data-category="typography"]  { --seed-accent: #4a7ba0; }
.seed-hero__category[data-category="color"]       { --seed-accent: #b06b3a; }
.seed-hero__category[data-category="motion"]      { --seed-accent: #7a5e8a; }
.seed-hero__category[data-category="interaction"] { --seed-accent: #3d8a7a; }
.seed-hero__category[data-category="philosophy"]  { --seed-accent: #8a6b3d; }

.seed-hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: normal;
  line-height: 1.1;
}

.seed-hero__description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin-block-end: 0;
}

.seed-footer {
  padding-block: var(--space-12) var(--space-20);
  border-block-start: 1px solid var(--color-border);
  margin-block-start: var(--space-12);
}

.seed-footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}


/* ─── About page ──────────────────────────────────────────── */

.about-intro {
  container-type: inline-size;
  padding-block: var(--space-12);
}

  .about-intro .about-intro__headline {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: normal;
    line-height: 1.15;
    margin-block-end: var(--space-8);
  }

.about-intro__body {
  display: grid;
  gap: var(--space-8);
}

  @container (min-width: 42rem) {

.about-intro__body {
    grid-template-columns: 1fr 18rem;
    align-items: start;
    gap: var(--space-2);
}
  }

.about-intro__photo {
  margin-block-start: var(--space-10);
}

  .about-intro__photo img {
    width: 18rem;
    height: 18rem;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
  }


/* ─── Contact page ────────────────────────────────────────── */

.contact-form {
  display: grid;
  gap: var(--space-6);
  max-width: 40rem;
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

  .form-field label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
  }

  .form-field input,.form-field textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: var(--text-base);
    transition: border-color var(--duration-fast) ease;
  }

    :is(.form-field input,.form-field textarea):focus {
      outline: none;
      border-color: var(--color-accent);
    }

  .form-field textarea {
    min-height: 10rem;
    resize: vertical;
  }
}
