/*
  Noto Serif Armenian (Regular), The Noto Project Authors.
  SIL Open Font License 1.1. See fonts/OFL-NotoSerifArmenian.txt.
  https://github.com/notofonts/armenian
  Used so Western Armenian (classical orthography) can render with real
  Armenian glyphs once placeholders are replaced.

  Crimson Pro, The Crimson Pro Project Authors (Jacques Le Bailly).
  SIL Open Font License 1.1. See fonts/OFL-CrimsonPro.txt.
  Latin UI and body text.
*/
@font-face {
  font-family: "Noto Serif Armenian";
  src: url("fonts/NotoSerifArmenian-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17, U+0308, U+02D0, U+2010-2019, U+2024, U+00A0;
}

@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/CrimsonPro-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/CrimsonPro-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --parchment: #f3eee4;
  --parchment-deep: #ece6d8;
  --ink: #2c2b28;
  --ink-soft: #3f3b35;
  --muted: #6b635a;
  --gold: #9a7b45;
  --gold-soft: #c4a46a;
  --gold-line: #d4c09a;
  --mat: #f7f3ea;
  --latin: "Crimson Pro", Georgia, "Palatino Linotype", Palatino,
    "Times New Roman", "Liberation Serif", "DejaVu Serif", serif;
  --row-h: 22.5rem;
  --about-photo-w: 22.5rem;
}

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

html {
  color-scheme: light;
  background: var(--parchment);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--latin);
  font-weight: 400;
  line-height: 1.45;
}

/* Apply the Armenian face to Armenian-language UI once placeholders are replaced. */
:lang(hy),
:lang(hy-arevmda) {
  font-family: "Noto Serif Armenian", "FreeSerif", "DejaVu Serif", serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  padding: 1.15rem 1.85rem;
  margin: 0;
  max-width: none;
}

.site-header-end {
  display: flex;
  align-items: baseline;
  gap: 1.35rem 1.75rem;
  margin-left: auto;
}

.site-brand {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.site-brand:hover {
  color: var(--ink);
}

.site-brand:focus {
  outline: none;
}

.site-brand:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.site-nav {
  display: flex;
  gap: 1.25rem 1.5rem;
  margin: 0;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.site-nav a {
  color: #5c534a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.12rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.site-nav a:focus {
  outline: none;
}

.site-nav a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.lang {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.lang button {
  margin: 0;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: var(--muted);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--ink);
}

.lang button:hover {
  color: var(--ink);
}

.lang button:focus {
  outline: none;
}

.lang button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.lang-sep {
  color: #c0b6aa;
  pointer-events: none;
}

/*
  Placeholder, not final copy. "HY" stands in until Tamar or her dad
  replaces this with Western Armenian in classical orthography.
*/
.hy-placeholder {
  font-family: var(--latin);
}

/* Shared thin mat / frame */
.mat {
  display: block;
  padding: 0.45rem;
  background: var(--mat);
  box-shadow: 0 0 0 1px var(--gold-line), 0 10px 22px rgba(70, 52, 28, 0.07);
}

.mat img {
  display: block;
}

/* ----- Opening page hero (keep this fold) ----- */

.page-home {
  background-color: var(--parchment);
  background-image: radial-gradient(
      ellipse 90% 50% at 72% 8%,
      rgba(196, 164, 106, 0.13),
      transparent 58%
    ),
    radial-gradient(
      ellipse 70% 40% at 8% 70%,
      rgba(180, 150, 100, 0.06),
      transparent 55%
    );
}

.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.page-home .hero {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 3.5rem 5.75rem;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 86rem;
  margin: 0 auto;
  padding: 5.5rem 4rem 2.75rem;
}

.page-home .hero-copy {
  max-width: 11.5em;
  padding-bottom: 0.5rem;
}

.page-home .hero-copy h1 {
  margin: 0;
  font-size: clamp(2.55rem, 4.6vw, 4.05rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.12;
  text-align: left;
}

.page-home .hero-copy .ornament {
  margin: 1.45rem 0 1.7rem;
}

.page-home .hero-cta {
  margin: 0;
}

.enter-link {
  display: inline-block;
  color: #6a5428;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  font-variant: small-caps;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.22rem;
}

.enter-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.enter-link:focus {
  outline: none;
}

.enter-link:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.page-home .hero-piece {
  margin: 0;
  justify-self: end;
}

.page-home .hero-piece img {
  display: block;
  width: auto;
  height: min(86vh, 52rem);
  max-width: 100%;
}

/* ----- Home links (below the hero fold) ----- */

.home-links {
  display: flex;
  justify-content: center;
  gap: 2.25rem;
  margin: 0;
  padding: 1.35rem 1.75rem 3.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
}

.home-links a {
  color: #5c4a2e;
  text-decoration: none;
  text-transform: lowercase;
  font-variant: small-caps;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.2rem;
}

.home-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.home-links a:focus {
  outline: none;
}

.home-links a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

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

.page-about .story {
  display: grid;
  grid-template-columns: minmax(15rem, 22.5rem) minmax(18rem, 1fr);
  gap: 3.5rem 4.75rem;
  align-items: start;
  max-width: 64rem;
  margin: 3.25rem auto 0;
  padding: 0 2rem;
}

.story-portrait {
  margin: 0;
  width: var(--about-photo-w);
  max-width: 100%;
  text-align: center;
}

/* About photographs: one shared 4:5 size, edge-to-edge, no mat, no letterbox. */
.about-frame {
  display: block;
  width: var(--about-photo-w);
  max-width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  background: none;
  box-shadow: 0 8px 22px rgba(70, 52, 28, 0.09);
}

.about-frame .zoom {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
}

.about-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-frame--portrait img {
  object-position: center 68%;
}

.about-frame--working img {
  object-position: center;
}

.about-frame--panel img {
  /* Source is tight at the top of the eagle panel; crop from the bottom. */
  object-position: top;
}

.bio {
  padding-top: 0.35rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  line-height: 1.78;
  text-align: left;
}

.bio p {
  margin: 0 0 1.2em;
}

.bio p:last-child {
  margin-bottom: 0;
}

.bio .hy-placeholder {
  color: #8a8076;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.bio-copy[lang="en"] p:first-child::first-letter {
  float: left;
  font-size: 3.7rem;
  line-height: 0.78;
  padding: 0.08em 0.06em 0 0;
  margin-right: 0.04em;
  color: var(--gold);
  font-weight: 400;
}

.section-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--ink-soft);
  text-transform: lowercase;
  font-variant: small-caps;
}

.workshop {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 56rem;
  margin: 5.25rem auto 0;
  padding: 0 2rem 6.5rem;
}

.workshop .ornament {
  margin: 1.1rem 0 2.4rem;
}

.workshop-pair {
  display: grid;
  grid-template-columns: var(--about-photo-w) var(--about-photo-w);
  justify-content: center;
  gap: 1.35rem;
  width: max-content;
  max-width: 100%;
}

.workshop-photo {
  margin: 0;
}


/* ----- Gallery ----- */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.35rem;
  max-width: 74rem;
  margin: 0 auto;
  padding: 2rem 1.75rem 6.5rem;
}

.piece {
  margin: 0;
  flex: 0 0 auto;
  max-width: 100%;
}

.piece .mat .zoom {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
}

.piece img {
  display: block;
  height: var(--row-h);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ----- Zoom, lightbox, credit, ornament ----- */

.zoom {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.zoom:focus {
  outline: none;
}

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

.lightbox {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1.5rem;
  border: 0;
  background: rgba(243, 238, 228, 0.97);
  cursor: zoom-out;
}

.lightbox::backdrop {
  background: rgba(243, 238, 228, 0.97);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  cursor: zoom-out;
}

.photo-credit {
  margin: 0.65rem 0 0;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #8a8076;
  font-weight: 400;
  text-align: center;
}

.photo-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #c8bdb0;
}

.photo-credit a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.photo-credit a:focus {
  outline: none;
}

.photo-credit a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.ornament {
  position: relative;
  width: 7.25rem;
  height: 0.85rem;
  margin: 1.35rem 0 0;
}

.ornament::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold-soft) 18%,
    var(--gold-soft) 82%,
    transparent
  );
}

.ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  background: var(--parchment);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ----- Breakpoints ----- */

@media (max-width: 56rem) {
  .page-home .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 1.15rem;
    padding: 5rem 1.35rem 1.15rem;
  }

  .page-home .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding-bottom: 0;
    flex: 0 0 auto;
  }

  .page-home .hero-copy h1 {
    text-align: center;
    font-size: clamp(2.05rem, 8.2vw, 2.85rem);
  }

  .page-home .hero-piece {
    justify-self: center;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
  }

  .page-home .hero-piece img {
    height: auto;
    width: auto;
    max-width: 92%;
    max-height: calc(100dvh - 13.1rem);
    object-fit: contain;
  }

  .page-about .story {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 0 1.25rem;
    justify-items: center;
  }

  .story-portrait,
  .about-frame {
    width: min(100%, 22rem);
  }

  .bio {
    max-width: none;
    padding-top: 0.2rem;
    font-size: 1.05rem;
    line-height: 1.72;
  }

  .workshop {
    padding: 0 1.25rem 5rem;
    margin-top: 3.75rem;
  }

  .workshop-pair {
    grid-template-columns: min(100%, 22rem);
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
  }

  :root {
    --row-h: 18rem;
  }

  .gallery {
    padding: 1.5rem 1.25rem 5rem;
    gap: 1.15rem;
  }
}

@media (max-width: 40rem) {
  .site-header {
    padding: 1rem 1.15rem;
    gap: 0.5rem 0.85rem;
  }

  .site-brand {
    flex: 1 0 100%;
    font-size: 0.92rem;
  }

  .site-header-end {
    flex: 1 0 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .page-home .site-header {
    padding: 1rem 1.15rem 0;
  }

  .page-home .hero {
    padding: 5.4rem 1.15rem 0.85rem;
    gap: 0.85rem;
  }

  .page-home .hero-copy h1 {
    font-size: 2.05rem;
    letter-spacing: 0.04em;
  }

  .page-home .hero-copy .ornament {
    margin: 0.95rem 0 1.05rem;
  }

  .home-links {
    gap: 1.75rem;
    padding: 1.1rem 1.15rem 2.75rem;
  }

  .bio-copy[lang="en"] p:first-child::first-letter {
    font-size: 3.05rem;
    padding-right: 0.04em;
    margin-right: 0.02em;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.15rem 5rem;
  }

  .piece {
    width: 100%;
  }

  .piece .mat .zoom,
  .piece img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .lightbox {
    padding: 1rem;
  }
}
