/* ════════════════════════════════════════════════════════════════
   Lindsay Trameri — index.css
   Soft maximalism · earthy pastels · digital scrapbook
   ════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --cream:    #F0E3CB;
  --linen:    #E4D4B4;
  --rose:     #C17E7A;
  --sage:     #6A9267;
  --terra:    #C4734E;
  --mauve:    #9E7285;
  --moss:     #344F31;
  --blush-bg: #F0DEDD;
  --sage-bg:  #E1EBE0;

  --color-text:        #2A1A10;
  --color-text-muted:  #7A5E4A;
  --color-text-light:  #F0E3CB;
  --color-border:      #D4B896;

  --shadow-paper: 2px 3px 0 rgba(0,0,0,0.05), 0 6px 20px rgba(0,0,0,0.09);
  --shadow-lift:  4px 6px 0 rgba(0,0,0,0.07), 0 12px 32px rgba(0,0,0,0.13);

  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --font-size-body: 17px;
  --line-height: 1.7;

  --container-max: 1100px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);
  --section-v:     clamp(5rem, 9vw, 8rem);
  --nav-height:    64px;
  --radius:        6px;
  --ease:          0.25s ease;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--font-size-body);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper grain overlay across the whole page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }

/* ── Layout helpers ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: 720px; }

/* ── Fade-in on scroll ──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.is-visible { opacity: 1; transform: none; }

/* ── Navigation ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(240, 227, 203, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav { display: flex; align-items: center; height: var(--nav-height); }

.nav__brand {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--moss);
  flex-shrink: 0;
  transition: color var(--ease);
}
.nav__brand:hover { color: var(--terra); }

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
  align-items: center;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  transition: color var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: width var(--ease);
}
.nav__link:hover { color: var(--terra); }
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  margin-left: auto;
}
.nav__bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding-block: var(--section-v); }
.section--blush { background: var(--blush-bg); }
.section--sage  { background: var(--sage-bg);  }

/* ── Eyebrow labels ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.6rem;
  display: block;
}

/* ── Section headings ───────────────────────────────────────────── */
.section__heading {
  font-family: var(--font);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  color: var(--moss);
}

/* ══════════════════════════════════════════════════════════════════
   01 — HERO
   ══════════════════════════════════════════════════════════════════ */
.section--hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(6rem, 12vw, 10rem);
  color: var(--cream);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(52, 79, 49, 0.76)   0%,
    rgba(196, 115, 78, 0.62) 45%,
    rgba(158, 114, 133, 0.70) 100%
  );
}

/* Botanical SVG decoration — bottom-right corner */
.hero__botanical {
  position: absolute;
  bottom: 0; right: 0;
  width: clamp(160px, 22vw, 300px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.hero__content { position: relative; z-index: 2; }

.section--hero .eyebrow {
  color: rgba(240, 227, 203, 0.75);
}

.hero__name {
  font-family: var(--font);
  font-size: clamp(4.5rem, 15vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin-bottom: 1.5rem;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(240, 227, 203, 0.88);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.72em 1.65em;
  background: var(--sage);
  color: #fff;
  font-family: var(--font);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 40px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease), box-shadow var(--ease), color var(--ease);
  box-shadow: 0 3px 12px rgba(106, 146, 103, 0.35);
}
.btn:hover { background: var(--moss); box-shadow: 0 6px 20px rgba(52, 79, 49, 0.35); }

.btn--ghost {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--sage); color: #fff; }

/* Hero button overrides (on dark photo bg) */
.section--hero .btn {
  background: rgba(240, 227, 203, 0.15);
  color: var(--cream);
  border-color: rgba(240, 227, 203, 0.55);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.section--hero .btn:first-child {
  background: var(--cream);
  color: var(--moss);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.section--hero .btn:first-child:hover { background: #fff; }
.section--hero .btn.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(240, 227, 203, 0.55);
}
.section--hero .btn.btn--ghost:hover { background: rgba(240, 227, 203, 0.18); }

/* ══════════════════════════════════════════════════════════════════
   02 — ABOUT
   ══════════════════════════════════════════════════════════════════ */
.about__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about__image-col { position: relative; padding-top: 2rem; }

/* Polaroid frame */
.polaroid {
  background: #fff;
  padding: 0.85rem;
  padding-bottom: 3.25rem;
  box-shadow: var(--shadow-paper);
  transform: rotate(-3.5deg);
  position: relative;
  transition: transform var(--ease), box-shadow var(--ease);
}
.polaroid:hover {
  transform: rotate(-1deg) translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* Washi tape strip */
.polaroid::before {
  content: '';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(4deg);
  width: 72px; height: 26px;
  background: rgba(196, 115, 78, 0.38);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(196, 115, 78, 0.2);
}

.polaroid img {
  width: 100%; display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.polaroid__caption {
  position: absolute;
  bottom: 0.8rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--font);
  font-size: 0.75rem;
  font-style: italic;
  color: #7A6050;
  letter-spacing: 0.02em;
}

.about__text-col { padding-top: 0.5rem; }

.prose p { margin-bottom: 1.5em; color: var(--color-text); }
.prose p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════════
   03 — CAREER HIGHLIGHTS
   ══════════════════════════════════════════════════════════════════ */
.highlight-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  column-gap: 2.5rem;
  row-gap: 0;
  list-style: none;
  padding: 0;
}

.highlight-list li {
  border-left: 3px solid var(--terra);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
}

.highlight-list li:nth-child(4n+1) { border-left-color: var(--terra); }
.highlight-list li:nth-child(4n+2) { border-left-color: var(--sage);  }
.highlight-list li:nth-child(4n+3) { border-left-color: var(--rose);  }
.highlight-list li:nth-child(4n+4) { border-left-color: var(--mauve); }

.highlight__category {
  display: block;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--moss);
  margin-bottom: 0.4rem;
}

.highlight__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   04 — WORK
   ══════════════════════════════════════════════════════════════════ */
.work__intro {
  font-family: var(--font);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500;
  color: var(--mauve);
  transform: rotate(-1deg);
  display: inline-block;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.35rem;
}

.tag {
  background: #FFF8F0;
  border-radius: 2px;
  padding: 1.5rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-paper);
  border-top: 5px solid var(--terra);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Alternating rotations for scrapbook feel */
.tag:nth-child(4n+1) { transform: rotate(-1.2deg); border-top-color: var(--terra); }
.tag:nth-child(4n+2) { transform: rotate( 0.9deg); border-top-color: var(--sage);  }
.tag:nth-child(4n+3) { transform: rotate(-0.6deg); border-top-color: var(--rose);  }
.tag:nth-child(4n+4) { transform: rotate( 1.3deg); border-top-color: var(--mauve); }

.tag:hover {
  transform: rotate(0deg) translateY(-5px) !important;
  box-shadow: var(--shadow-lift);
  z-index: 10;
}

/* Pin dot at card top */
.tag::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(0,0,0,0.13);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.tag__title {
  display: block;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--moss);
  margin-bottom: 0;
}

.tag__detail {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 320px;
  padding: 1rem 1.25rem;
  background: var(--moss);
  color: var(--cream);
  font-size: 0.8rem;
  line-height: 1.6;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}

/* Tooltip arrow */
.tag__detail::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--moss);
}

.tag:hover .tag__detail {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-5px);
}

/* ══════════════════════════════════════════════════════════════════
   04 — PRESS
   ══════════════════════════════════════════════════════════════════ */
.press__annotation {
  font-family: var(--font);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
  transform: rotate(-1deg);
  display: inline-block;
  margin-bottom: 1.75rem;
  margin-top: -1.25rem;
  letter-spacing: 0.01em;
}

.press-list { list-style: none; }

.press-item {
  border-bottom: 1px dashed var(--color-border);
  background: rgba(255,255,255,0.45);
  transition: background var(--ease);
}
.press-item:first-child { border-top: 1px dashed var(--color-border); }
.press-item:hover { background: rgba(255,255,255,0.78); }

.press-item__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0.75rem;
}

/* Colored sticker badge */
.press-item__source {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.22em 0.75em;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.press-item:nth-child(3n+1) .press-item__source { background: var(--terra); }
.press-item:nth-child(3n+2) .press-item__source { background: var(--sage);  }
.press-item:nth-child(3n+3) .press-item__source { background: var(--mauve); }

.press-item__headline {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.45;
  transition: color var(--ease);
}
.press-item__link:hover .press-item__headline { color: var(--terra); }

.press-item__year {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════════
   05 — LEADERSHIP
   ══════════════════════════════════════════════════════════════════ */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.leadership-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.leadership-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.leadership-item__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--linen);
  position: relative;
}
.leadership-item__photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.leadership-item:hover .leadership-item__photo img { transform: scale(1.04); }

/* Tinted overlay on each photo — one per card */
.leadership-item__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.leadership-item:nth-child(1) .leadership-item__photo::after { background: rgba(196, 115, 78,  0.22); }
.leadership-item:nth-child(2) .leadership-item__photo::after { background: rgba(106, 146, 103, 0.22); }
.leadership-item:nth-child(3) .leadership-item__photo::after { background: rgba(158, 114, 133, 0.22); }

.leadership-item__body { padding: 1.5rem 1.75rem 2rem; }

.leadership-item__org {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.5rem;
}

.leadership-item__role {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--moss);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.leadership-item__meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.leadership-item__detail {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════
   06 — CONNECT
   ══════════════════════════════════════════════════════════════════ */
.connect__stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2.5px dashed var(--rose);
  margin-bottom: 2rem;
  transform: rotate(-8deg);
  transition: transform 0.35s ease;
  cursor: default;
}
.connect__stamp:hover { transform: rotate(0deg) scale(1.06); }

.connect__stamp-text {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  font-style: italic;
  color: var(--rose);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.connect__desc {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
}

.connect__links { display: flex; flex-direction: column; gap: 0.85rem; }

.connect__link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 1.6rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.connect__link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(106, 146, 103, 0.45);
}
.connect__link:hover .connect__link-value { color: var(--sage); }

.connect__link-label {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  min-width: 72px;
  flex-shrink: 0;
}
.connect__link-value {
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color var(--ease);
}

/* ── Contact form ───────────────────────────────────────────────── */
.connect__form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: 2rem 2.25rem 2.25rem;
  margin-bottom: 2rem;
}

.connect__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.35rem;
}
.connect__field:last-of-type { margin-bottom: 1.75rem; }

.connect__field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.5rem;
}

.connect__field input,
.connect__field textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.7em 0.95em;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
  resize: vertical;
}
.connect__field input::placeholder,
.connect__field textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.65;
}
.connect__field input:focus,
.connect__field textarea:focus {
  border-color: var(--sage);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(106, 146, 103, 0.15);
}

/* Validation states — only shown after the user has touched the field */
.connect__field input.touched:invalid,
.connect__field textarea.touched:invalid {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(193, 126, 122, 0.15);
}
.connect__field input.touched:valid {
  border-color: var(--sage);
}

.connect__field__error {
  font-size: 0.75rem;
  color: var(--rose);
  margin-top: 0.4rem;
  display: none;
}
.connect__field input.touched:invalid ~ .connect__field__error {
  display: block;
}

.connect__form .btn {
  width: 100%;
  justify-content: center;
}

/* Success banner */
.connect__success {
  background: var(--sage-bg);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.25rem 1.6rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--moss);
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  padding-block: 2.5rem;
  background: var(--moss);
}
.site-footer p {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(240, 227, 203, 0.65);
}

/* ════════════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(240, 227, 203, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding-block: 0.5rem;
    box-shadow: 0 8px 24px rgba(42, 26, 16, 0.1);
  }
  .nav__links.is-open { display: flex; }

  .nav__link {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  .nav__link::after { display: none; }

  .about__layout { grid-template-columns: 1fr; }
  .about__image-col { display: flex; justify-content: center; padding-top: 1rem; }
  .polaroid { max-width: 220px; }

  .press-item__link {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.3rem 0.75rem;
    padding-block: 1.2rem;
  }
  .press-item__source  { grid-column: 1; grid-row: 1; align-self: center; }
  .press-item__headline { grid-column: 1 / -1; grid-row: 2; }
  .press-item__year    { grid-column: 2; grid-row: 1; text-align: right; }

  .hero__actions { flex-direction: column; align-items: flex-start; }

  /* Disable rotations on touch devices */
  .tag:nth-child(n) { transform: none !important; }
  .tag:hover { transform: translateY(-3px) !important; }

  /* Adjust tooltip width on mobile */
  .tag__detail {
    max-width: 280px;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
  }

  .tag:hover .tag__detail {
    transform: translateY(-5px);
  }
}

@media (max-width: 480px) {
  .tag-grid        { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .connect__link { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .connect__link-label { min-width: auto; }
  .connect__form { padding: 1.5rem 1.25rem 1.75rem; }
}

/* ════════════════════════════════════════════════════════════════
   Auth Pages (Login)
   ════════════════════════════════════════════════════════════════ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
}

.auth-header {
  margin-bottom: 2rem;
  text-align: center;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--moss);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.auth-error {
  background: rgba(193, 126, 122, 0.1);
  border: 1px solid var(--rose);
  border-radius: var(--radius);
  color: var(--rose);
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.auth-field input {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: white;
  color: var(--color-text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(106, 146, 103, 0.1);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-link {
  color: var(--sage);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--ease);
}

.auth-link:hover {
  color: var(--moss);
}

/* ════════════════════════════════════════════════════════════════
   Admin Header
   ════════════════════════════════════════════════════════════════ */

.admin-header {
  background: white;
  border-bottom: 2px solid var(--sage);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.admin-header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-header__title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--moss);
}

.admin-main {
  padding: 2rem 0 4rem;
  min-height: calc(100vh - 200px);
}

/* ════════════════════════════════════════════════════════════════
   Messages Table
   ════════════════════════════════════════════════════════════════ */

.messages-wrapper {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  overflow-x: auto;
}

.messages-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.messages-table thead {
  background: var(--sage-bg);
  border-bottom: 2px solid var(--sage);
}

.messages-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--moss);
  white-space: nowrap;
}

.messages-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--linen);
  color: var(--color-text);
}

.messages-table tbody tr:last-child td {
  border-bottom: none;
}

.messages-table tbody tr {
  transition: background-color var(--ease);
}

.messages-table tbody tr:hover {
  background: rgba(225, 235, 224, 0.3);
}

.messages-table td a {
  color: var(--sage);
  text-decoration: none;
  transition: color var(--ease);
}

.messages-table td a:hover {
  color: var(--moss);
  text-decoration: underline;
}

.messages-empty {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* ════════════════════════════════════════════════════════════════
   Button Variants
   ════════════════════════════════════════════════════════════════ */

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* ════════════════════════════════════════════════════════════════
   Auth Responsive
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .admin-header__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header__title {
    font-size: 1.5rem;
  }

  .messages-wrapper {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .messages-table {
    font-size: 0.875rem;
  }

  .messages-table th,
  .messages-table td {
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 640px) {
  .messages-table thead {
    display: none;
  }

  .messages-table,
  .messages-table tbody,
  .messages-table tr,
  .messages-table td {
    display: block;
  }

  .messages-table tr {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--linen);
  }

  .messages-table tr:last-child {
    border-bottom: none;
  }

  .messages-table td {
    padding: 0.5rem 1rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .messages-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--moss);
    min-width: 80px;
    margin-right: 1rem;
  }

  .messages-table td:first-child {
    background: var(--sage-bg);
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }
}
