/* ===========================================================================
   Claudia Römer — portfolio
   Style language: warm cream paper, high-contrast serif display with italic
   artwork titles, thin brass/ochre accent, framed artwork, gallery-minimal.
   Drawn from her admissions deck + reference artist sites.
   =========================================================================== */

:root {
  --paper:        #faf8f4;   /* warm cream background */
  --paper-edge:   #f3efe7;   /* faint section tint */
  --ink:          #1c1b18;   /* near-black text */
  --ink-soft:     #44413b;   /* secondary text */
  --muted:        #8c867b;   /* labels / captions */
  --brass:        #b08d57;   /* accent rule / hairlines highlight */
  --brass-deep:   #97743f;   /* links / hover */
  --hairline:     #e4ded2;   /* thin borders */
  --mat:          #ffffff;   /* frame mat */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brass-deep); text-decoration: none; }
a:hover { color: var(--ink); }

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

/* ---- shared typographic atoms ---------------------------------------- */

.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

.rule {
  width: 52px;
  height: 1px;
  background: var(--brass);
  border: 0;
  margin: 20px 0;
}
.rule.center { margin-inline: auto; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.04;
  margin: 0;
}

/* ---- site header / nav ------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(120%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.wordmark {
  font-size: 16px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.wordmark:hover { color: var(--brass-deep); }
.nav {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}
.nav a {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

/* keep the banner on one row without clipping on small screens */
@media (max-width: 560px) {
  .site-header .wrap { gap: 12px; min-height: 62px; }
  .wordmark { font-size: 13px; letter-spacing: .12em; white-space: nowrap; }
  .nav { gap: 14px; }
  .nav a { font-size: 11px; letter-spacing: .08em; }
}
@media (max-width: 380px) {
  .site-header .wrap { padding-inline: 16px; gap: 10px; }
  .wordmark { font-size: 12px; letter-spacing: .06em; }
  .nav { gap: 11px; }
  .nav a { font-size: 10px; letter-spacing: .04em; }
}

/* ---- homepage showcase (auto-cycling works) -------------------------- */

.showcase {
  height: calc(100vh - 77px);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vh, 48px) var(--gutter);
  overflow: hidden;
}
.showcase .slides { position: relative; width: 100%; height: 100%; }
.showcase .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.showcase .slide.is-active { opacity: 1; }
.showcase .slide .frame {
  display: inline-flex;
  max-height: 100%;
  box-shadow: 0 18px 46px rgba(46, 38, 22, 0.14);
}
.showcase .slide .frame .inner { display: flex; max-height: 100%; }
.showcase .slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

/* ---- hero ------------------------------------------------------------- */

.hero {
  padding: clamp(64px, 11vw, 132px) 0 clamp(40px, 7vw, 80px);
  border-left: 2px solid var(--brass);
  margin-left: -2px;
}
.hero .wrap { max-width: 880px; margin-inline: 0; padding-left: var(--gutter); }
.hero h1 {
  font-size: clamp(44px, 8vw, 92px);
  margin: 14px 0 0;
}
.hero .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 26px 0 0;
  line-height: 1.4;
}

/* ---- gallery ---------------------------------------------------------- */

.gallery {
  padding: clamp(28px, 6vw, 64px) 0 clamp(64px, 10vw, 120px);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 6vw, 88px) clamp(32px, 5vw, 72px);
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 56px; }
}

.piece { margin: 0; }
.piece button.frame-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

/* framed artwork — white mat + hairline + faint inner line + soft lift */
.frame {
  background: var(--mat);
  padding: clamp(12px, 1.6vw, 20px);
  border: 1px solid var(--hairline);
  box-shadow: 0 14px 38px rgba(46, 38, 22, 0.10);
  transition: box-shadow .35s ease, transform .35s ease;
}
.frame .inner {
  outline: 1px solid var(--hairline);
  outline-offset: 6px;
}
.piece button.frame-btn:hover .frame,
.piece button.frame-btn:focus-visible .frame {
  box-shadow: 0 22px 52px rgba(46, 38, 22, 0.16);
  transform: translateY(-3px);
}
.frame img { width: 100%; height: auto; }

/* center each artwork vertically within a shared row band so mixed
   orientations sit gracefully */
.piece .frame-btn { display: flex; align-items: center; justify-content: center; }

.caption { margin-top: 22px; }
.caption .title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.caption .meta {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}
.caption .meta b { color: var(--ink-soft); font-weight: 600; }
.caption .meta .dot { color: var(--brass); margin: 0 8px; }

/* ---- generic prose / about / contact --------------------------------- */

.section { padding: clamp(56px, 9vw, 120px) 0; }
.section.tinted { background: var(--paper-edge); border-block: 1px solid var(--hairline); }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 820px) { .lead-grid { grid-template-columns: 1fr; gap: 40px; } }

.section h2.display { font-size: clamp(32px, 5vw, 52px); }

.prose { max-width: 60ch; }
.prose p {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-soft);
  margin: 0 0 1.25em;
}
.prose p.first::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: .8;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--brass-deep);
}
.prose .pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--brass);
  padding-left: 24px;
  margin: 36px 0;
}

.portrait-card .frame { max-width: 360px; }

/* contact form */
.contact-form { display: flex; flex-direction: column; gap: 22px; max-width: 480px; }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form .field > span {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 2px;
  outline: none;
  transition: border-color .25s ease;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--brass); }
.contact-form button {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  padding: 14px 30px;
  cursor: pointer;
  transition: background .25s ease;
}
.contact-form button:hover { background: var(--brass-deep); }
.contact-form button:disabled { opacity: .55; cursor: default; }
.form-status { margin: 4px 0 0; font-size: 14px; min-height: 1.2em; }
.form-status.ok  { color: var(--brass-deep); }
.form-status.err { color: #a23b2f; }

/* definition list for facts (about / contact) */
.facts { margin: 0; }
.facts div {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.facts div:last-child { border-bottom: 1px solid var(--hairline); }
.facts dt {
  flex: 0 0 130px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.facts dd { margin: 0; font-size: 16px; color: var(--ink); }

/* contact call-to-action links */
.contact-links { margin-top: 32px; display: flex; flex-direction: column; gap: 2px; }
.contact-links a.big {
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 36px);
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: color .25s ease, padding-left .25s ease;
}
.contact-links a.big:hover { color: var(--brass-deep); padding-left: 10px; }
.contact-links a.big .arr { color: var(--brass); font-family: var(--sans); font-size: .6em; }

/* ---- footer ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  margin-top: 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer small, .site-footer a {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- lightbox --------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 21, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: clamp(20px, 5vw, 64px);
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  background: var(--mat);
  padding: clamp(10px, 1.4vw, 18px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox figcaption {
  margin-top: 20px;
  text-align: center;
  color: #f3efe7;
}
.lightbox figcaption .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
}
.lightbox figcaption .meta {
  font-size: 12px;
  letter-spacing: .06em;
  color: #c8c1b2;
  margin-top: 6px;
}
.lightbox .close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 36px);
  background: none;
  border: 0;
  color: #f3efe7;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.lightbox .close:hover { opacity: 1; }
.lightbox .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #f3efe7;
  font-size: 40px;
  cursor: pointer;
  opacity: .6;
  padding: 12px;
}
.lightbox .nav-arrow:hover { opacity: 1; }
.lightbox .prev { left: clamp(4px, 2vw, 24px); }
.lightbox .next { right: clamp(4px, 2vw, 24px); }
@media (max-width: 640px) { .lightbox .nav-arrow { font-size: 28px; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
