/* ---------- Sarah Eisner — Gallery on a quiet afternoon ---------- */

:root {
  --bg: #F1EBE0;
  --bg-deep: #E9E0D0;
  --ink: #221F1A;
  --ink-soft: #625B4F;
  --ink-faint: #948C7C;
  --line: #D8CDB8;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.13  0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  color: var(--ink);
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 34px;
  padding-bottom: 34px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav a {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--ink);
  border-color: var(--ink-faint);
}

/* ---------- Understated link (replaces buttons) ---------- */

.link-arrow {
  display: inline-block;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.link-arrow:hover { border-color: var(--ink); opacity: 0.72; }

/* ---------- Hero — art appears immediately, split layout ---------- */

.hero {
  padding: 60px 0 110px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.hero .eyebrow {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  margin: 0 0 24px;
  line-height: 1.22;
  font-weight: 400;
}

.hero h1 .soft {
  color: var(--ink-faint);
}

.hero p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0 0 34px;
}

.hero-art img {
  width: 100%;
  display: block;
}

.hero-art figcaption {
  margin-top: 14px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 14.5px;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
}

/* ---------- Sections ---------- */

section { padding: 130px 0; }

section.alt { background: var(--bg-deep); }

section.tight { padding: 90px 0; }

.section-head {
  max-width: 620px;
  margin: 0 auto 80px;
  text-align: center;
}

.section-head .kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 22px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17.5px;
}

.center-cta { text-align: center; margin-top: 56px; }

/* ---------- Narrow text / pull quote ---------- */

.narrow { max-width: 640px; margin: 0 auto; }
.narrow p { margin: 0 0 24px; }

.lede {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 27px;
  line-height: 1.55;
  color: var(--ink);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Asymmetric featured trio (Home) ---------- */

.featured-asym {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.featured-asym .figure-lg { margin-top: 0; }
.featured-asym .figure-stack { display: flex; flex-direction: column; gap: 64px; margin-top: 90px; }

figure { margin: 0; }

figure img {
  width: 100%;
  display: block;
  height: auto;
}

figure figcaption {
  margin-top: 16px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ---------- Framed "mat" treatment + clickable pieces ---------- */

.piece-link { display: block; }

.mat {
  background: #F8F3E9;
  border: 1px solid var(--line);
  padding: 22px;
}

.piece-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
  gap: 16px;
}

.piece-label .no {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.piece-label figcaption {
  margin-top: 0;
  flex: 1;
}

.view-story {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.piece-link:hover .view-story {
  opacity: 1;
  transform: translateY(0);
}

.piece-link:hover .mat { border-color: var(--ink-faint); }

/* ---------- Gallery grid (Portfolio) — 3 across, 3 down ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 44px;
  align-items: start;
}

.gallery-grid figure { margin-bottom: 0; }

.gallery-grid .mat { padding: 14px; }

.frame-img {
  display: block;
}

.frame-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- About layout ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.about-layout .art { margin-top: 50px; }
.about-layout .art img { width: 100%; display: block; }
.about-layout .art figcaption {
  margin-top: 16px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 15px;
  color: var(--ink-soft);
}

.about-layout h1 { font-size: clamp(30px, 4vw, 42px); }

/* ---------- Contact ---------- */

.inquiry-flow {
  text-align: center;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 2.1;
  max-width: 520px;
  margin: 0 auto;
}

.contact-details {
  margin-top: 70px;
  text-align: center;
}

.contact-details .place {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Newsreader', Georgia, serif;
}

.contact-row a {
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.contact-row a:hover { border-color: var(--ink); }

/* ---------- Piece detail page ---------- */

.piece-hero {
  max-width: 760px;
  margin: 0 auto;
}

.piece-hero .mat { padding: 32px; }

.piece-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.piece-meta .no {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.piece-meta h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0;
}

.piece-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 46px;
  font-size: 15px;
}

.piece-nav a {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.piece-nav a:hover { color: var(--ink); border-color: var(--ink-faint); }

.piece-nav .all-work {
  text-transform: uppercase;
  font-style: normal;
  letter-spacing: 0.1em;
  font-size: 12.5px;
}

/* drop cap for narrative intro blocks */
.drop p:first-of-type::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.6em;
  line-height: 0.8;
  float: left;
  margin: 6px 10px 0 0;
  color: var(--ink);
}

/* ---------- Placeholder ---------- */

.placeholder {
  text-align: center;
  padding: 90px 40px;
  color: var(--ink-faint);
  max-width: 520px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer, .site-footer a {
  color: var(--ink-faint);
  font-size: 14px;
}

.footer-links { display: flex; gap: 28px; }
.footer-links a:hover { color: var(--ink); }


/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 200;
  font-size: 15px;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

/* prevent overflow on small screens */
img, figure { max-width: 100%; }
html, body { overflow-x: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero .wrap { gap: 48px; }
  .gallery-grid { gap: 44px 34px; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 32px; }
  section { padding: 84px 0; }
  section.tight { padding: 64px 0; }

  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .hero h1 { font-size: clamp(30px, 7vw, 40px); }

  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-layout .art { margin-top: 0; order: -1; }

  .featured-asym { grid-template-columns: 1fr; gap: 48px; }
  .featured-asym .figure-stack { margin-top: 0; gap: 48px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }

  .section-head { margin-bottom: 56px; }

  /* nav becomes a centered wrap-friendly row with real tap targets */
  .site-header .wrap { padding-top: 20px; padding-bottom: 20px; }
  nav ul { gap: 8px 22px; flex-wrap: wrap; justify-content: center; }
  nav a { padding: 10px 4px; font-size: 13px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  section { padding: 64px 0; }
  section.tight { padding: 52px 0; }

  body { font-size: 17px; }

  .hero { padding: 28px 0 56px; }
  .hero h1 { font-size: clamp(28px, 8vw, 34px); line-height: 1.18; }
  .hero p { font-size: 17px; }

  .lede { font-size: 22px; }
  .section-head { margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(23px, 6.5vw, 28px); }

  .gallery-grid { grid-template-columns: 1fr; gap: 44px; }
  .mat, .gallery-grid .mat { padding: 12px; }
  .piece-hero .mat { padding: 14px; }

  /* on touch devices the hover caption never fires — always show it */
  .view-story { opacity: 1; transform: none; }

  .piece-nav { flex-direction: column; gap: 16px; text-align: center; }
  .piece-meta { flex-direction: column; align-items: flex-start; gap: 6px; }

  .contact-row { gap: 18px; flex-direction: column; }
  .inquiry-flow { font-size: 17px; line-height: 1.9; }

  .site-footer .wrap { flex-direction: column; text-align: center; gap: 14px; }

  nav ul { gap: 6px 16px; }
  nav a { font-size: 12.5px; padding: 9px 3px; }
}

/* touch devices: no hover-dependent reveals anywhere */
@media (hover: none) {
  .view-story { opacity: 1; transform: none; }
  .piece:hover img, .piece-link:hover img { transform: none; }
}

/* ---------- Portfolio statement line ---------- */

.portfolio-statement {
  font-family: 'DehutiItalic', 'Dehuti', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(27px, 4.4vw, 47px);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 15ch;
  margin: 18px auto 64px;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 860px) {
  .portfolio-statement {
    max-width: 20ch;
    margin: 8px auto 44px;
  }
}

@media (max-width: 560px) {
  .portfolio-statement {
    font-size: clamp(24px, 7.4vw, 30px);
    max-width: none;
    margin: 4px auto 34px;
  }
}
