/* anagabrielacarvalho — v1
   The site is the white margin around the drawing:
   no chrome color, all color comes from the works. */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-2: #757575;
  --line: #e8e8e8;
  --paper: 21 / 29.7; /* the real A4 ratio */
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

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

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

/* ---------- header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding: calc(var(--pad) * 0.75) var(--pad);
  border-bottom: 1px solid var(--line);
}

.site-name {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.site-nav a {
  color: var(--ink-2);
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ---------- shared layout ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--pad);
}

.site-footer {
  padding: calc(var(--pad) * 0.75) var(--pad);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---------- home ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) 3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(1rem, 4vw, 3rem) 0 clamp(2rem, 6vw, 4rem);
}

.portrait {
  width: 100%;
  height: auto;
}

/* Ana Gabriela's own words — the only serif on the site */
.artist-words {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.65;
  margin: 0;
}

.artist-sig {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.teaser {
  border-top: 1px solid var(--line);
  padding-top: calc(var(--pad) * 0.75);
}

.teaser-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.teaser-row a { aspect-ratio: var(--paper); overflow: hidden; }

.teaser-row img { width: 100%; height: 100%; object-fit: cover; }

.teaser-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1rem;
}

/* ---------- obras ----------
   Per client review: label above each work, artworks small,
   single column (cf. ellenweider.com works pages). */

.works-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 24rem));
  gap: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.works-list figure { margin: 0; }

.works-list .wall-label { margin-bottom: 0.75rem; }

.works-list button {
  all: unset;
  display: block;
  cursor: zoom-in;
  width: 100%;
}

.works-list button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.works-list img { width: 100%; height: auto; }

/* wall label */
.wall-label { font-size: 0.85rem; line-height: 1.6; }
.wall-label .title { font-family: "Lora", Georgia, serif; font-style: italic; }
.wall-label .medium { color: var(--ink-2); }

/* In the grid the label sits above a small work in a narrow column, so it
   runs smaller than the lightbox one. Client review 2026-08-21:
   "diminuir o tamanho das letras. Ta muito grande." */
.works-list .wall-label { font-size: 0.72rem; line-height: 1.5; }

/* ---------- decoracao ----------
   Client request 2026-08-21: photos of the work in a room, "uma a uma em
   linha. Nao precisa ser 2 lado a lado" - one per row, not the obras grid.
   Wider than a single obras column (24rem) because these are context shots,
   and the room, not the drawing, is what has to read. */

.deco-list {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  max-width: 34rem;
}

.deco-list figure { margin: 0; }

.deco-list img { width: 100%; height: auto; }

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

dialog.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  height: 100svh;
  max-width: 100vw;
  max-height: 100svh;
  background: var(--bg);
}

dialog.lightbox::backdrop { background: rgba(255, 255, 255, 0.97); }

.lightbox-inner {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1rem, 3vw, 2.5rem);
  gap: 1rem;
}

.lightbox-inner figure {
  margin: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1.25rem;
  justify-items: center;
}

.lightbox-inner img {
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
}

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

.lightbox-bar .count {
  font-size: 0.8rem;
  color: var(--ink-2);
  letter-spacing: 0.08em;
}

.lightbox-bar .controls { display: flex; gap: 0.5rem; }

.lightbox-bar button {
  all: unset;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--ink);
}

.lightbox-bar button:hover { border-color: var(--ink); }
.lightbox-bar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- text pages ---------- */

.page-narrow { max-width: 38rem; }

/* Sobre — client review 2026-08-21: "pode diminuir tambem um pouco o tamanho
   da letra". Set on the container so the headings and .bio-name keep the
   sizes they declare; only the running text inherits this. */
.bio { font-size: 0.92rem; }

.page-narrow h1 {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.bio-name {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  margin: 0 0 1.5rem;
}

.contact-list { list-style: none; margin: 0; padding: 0; }

.contact-list li {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list .channel {
  min-width: 7rem;
  color: var(--ink-2);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.muted { color: var(--ink-2); }

/* ---------- motion ---------- */

.fade { opacity: 0; transition: opacity 0.4s ease; }
.fade.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 60rem) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 44rem) {
  .hero { grid-template-columns: 1fr; }
  .portrait { max-width: 20rem; }
  .teaser-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 34rem) {
  .works-grid { grid-template-columns: 1fr; }
}
