@charset "utf-8";

/* =========================================================================
   Anna Waldmann — Art Advisor
   Single-page editorial layout.
   Structure: tokens / reset / typography / header / hero / sections /
              components / footer / responsive / print
   ========================================================================= */

/* -------------------------------------------------------------- 1. Tokens */

:root {
  /* Palette — cool stone paper, ink with a green cast, deep harbour blue */
  --paper:        #f5f4f0;
  --paper-band:   #eceae3;
  --ink:          #1c1e1a;
  --ink-soft:     #55584f;
  --ink-faint:    #85887e;
  --rule:         #d6d3c9;
  --rule-soft:    #e3e0d8;
  --accent:       #21384c;
  --accent-lift:  #35566f;
  --alert:        #8c3b2c;

  /* Type */
  --display: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Scale */
  --step--2: 0.7188rem;
  --step--1: 0.8125rem;
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.1875rem, 1.12rem + 0.34vw, 1.375rem);
  --step-2:  clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.125rem);
  --step-4:  clamp(2.75rem, 1.9rem + 4.2vw, 5.5rem);

  /* Layout */
  --wrap:       74rem;
  --gutter:     clamp(1.25rem, 5vw, 3.25rem);
  --label-col:  11rem;
  --measure:    38rem;
  --section-y:  clamp(4.5rem, 9vw, 8.5rem);

  --header-h: 4.375rem;
}

/* --------------------------------------------------------------- 2. Reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-size: var(--step--1);
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------- 3. Typography */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.008em;
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

em, i, cite { font-style: italic; }

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

.prose { max-width: var(--measure); }

.prose a {
  background-image: linear-gradient(var(--rule), var(--rule));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 0.2s ease, color 0.2s ease;
}
.prose a:hover {
  color: var(--accent-lift);
  background-image: linear-gradient(var(--accent-lift), var(--accent-lift));
}

/* The eyebrow is the site's one persistent utility voice: small, tracked,
   uppercase Archivo. Used for section labels, nav, meta and captions. */
.eyebrow {
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

/* Italic display line that opens each section — the recurring signature. */
.lede {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 0 2.5rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3.5rem 0;
}

/* -------------------------------------------------------------- 4. Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 240, 0.86);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand span {
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: 0.625rem;
}

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-block: 0.375rem;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a.is-current::after { transform: scaleX(1); }
.site-nav a.is-current { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.5rem 0.875rem;
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* ---------------------------------------------------------------- 5. Hero */

.hero {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero-eyebrow { margin-bottom: 1.75rem; }

.hero h1 {
  font-size: var(--step-4);
  line-height: 0.95;
  letter-spacing: -0.022em;
  margin-bottom: 1.75rem;
}

.hero-lead {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 2.25rem;
}

.hero-portrait img {
  width: 100%;
  filter: grayscale(100%) contrast(1.02);
  transition: filter 0.6s ease;
}
.hero-portrait:hover img { filter: grayscale(0%); }

.scroll-cue {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  color: var(--ink);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 1px solid var(--ink);
  padding-top: 0.75rem;
}
.scroll-cue span { transition: transform 0.25s ease; }
.scroll-cue:hover span { transform: translateY(3px); }

/* ------------------------------------------------------------ 6. Sections */

.section { padding-block: var(--section-y); }

.section--band {
  background: var(--paper-band);
  border-block: 1px solid var(--rule-soft);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.section-label { padding-top: 0.5rem; }

.section-body > :last-child { margin-bottom: 0; }

/* Sub-blocks within a section (Roles / Boards / Projects etc.) */
.block { margin-top: 3.75rem; }
.block:first-child { margin-top: 0; }

.block-title {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

/* ---------------------------------------------------------- 7. Components */

/* 7a. Services — headed blocks, no cards, no icons */

.services { display: grid; gap: 2.5rem 3rem; }

.service h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}
.service p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

/* 7b. Record list — year hung in a fixed left column */

.record li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule-soft);
}
.record li:last-child { border-bottom: 0; }

.record-year {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.record-body { color: var(--ink); }
.record-body strong { font-weight: 600; }
.record-body .where {
  display: block;
  color: var(--ink-soft);
  font-size: var(--step--1);
  margin-top: 0.125rem;
}
.record-body cite { font-style: italic; }

.record a {
  background-image: linear-gradient(var(--rule), var(--rule));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
}
.record a:hover { color: var(--accent-lift); }

/* 7c. Figures */

figure img { width: 100%; }

figcaption {
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-faint);
  margin-top: 0.75rem;
  max-width: 44ch;
}

.figure-inline { margin-block: 3rem; }

.figure-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-block: 3rem;
}
.figure-pair img { transition: opacity 0.3s ease; }
.figure-pair a:hover img { opacity: 0.86; }
.figure-pair figcaption { grid-column: 1 / -1; max-width: none; margin-top: 0.25rem; }

/* 7d. Contact */

.contact-layout { display: grid; gap: 3.5rem; }

.contact-aside { display: grid; gap: 0.75rem; align-content: start; }

.contact-primary {
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  transition: color 0.2s ease;
}
.contact-primary span { transition: transform 0.25s ease; }
.contact-primary:hover { color: var(--accent); }
.contact-primary:hover span { transform: translateX(5px); }

.contact-meta { color: var(--ink-soft); font-size: var(--step--1); }
.contact-meta a { color: var(--ink-soft); }
.contact-meta a:hover { color: var(--accent); }

/* 7e. Form */

.contact-form { max-width: 36rem; }

.field-row { display: grid; gap: 0 1.5rem; }

.field { display: grid; margin: 0 0 1.75rem; }

.field label {
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.field label em {
  font-style: normal;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.field input,
.field textarea {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.5rem 0;
  width: 100%;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

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

.field input:hover,
.field textarea:hover { border-bottom-color: var(--ink-faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: none; }

.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--alert); }

.field-error {
  font-size: var(--step--1);
  color: var(--alert);
  margin-top: 0.375rem;
  min-height: 0;
}

/* Honeypot — off-screen, never focusable, never announced. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.8125rem 1.5rem;
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.btn span { transition: transform 0.25s ease; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover span { transform: translateX(4px); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn[disabled]:hover { background: transparent; color: var(--ink); }
.btn[disabled]:hover span { transform: none; }

.form-status {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30ch;
}
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: var(--alert); }

/* -------------------------------------------------------------- 8. Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.25rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-inner a { color: var(--ink-faint); }
.footer-inner a:hover { color: var(--ink); }

/* ---------------------------------------------------------- 9. Responsive */

@media (min-width: 46.25em) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record li { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 60em) {
  .section-grid {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
  .section-label {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
  .record li { grid-template-columns: 7rem minmax(0, 1fr); }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 4rem;
    align-items: start;
  }
}

@media (max-width: 46.1875em) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 20rem; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-block: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding-block: 0.75rem; font-size: var(--step-0); }
  .site-nav a::after { display: none; }

  .header-inner { position: relative; }

  .figure-pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- 10. Print */

@media print {
  .site-header, .scroll-cue, .site-footer, .contact-form { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1.5rem; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
