@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Jost:wght@300;400;500&display=swap');

:root {
  --bg: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --line: #e4e0da;
  --accent: #b3a084;
  --overlay: rgba(255, 255, 255, 0.98);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: page-fade-in 0.5s ease both;
}

body.is-leaving {
  opacity: 0;
  transition: opacity 0.28s ease;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

.site-header {
  text-align: center;
  padding: 5.5rem 1.5rem 2.5rem;
}

.site-header.is-compact {
  padding: 2.8rem 1.5rem 2rem;
}

.site-name {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 1.6rem;
  line-height: 1.1;
}

.site-header.is-compact .site-name {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 1.2rem;
}

.site-name a { display: inline-block; }

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
}

.main-nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

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

.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Home / Banner ---------- */

.hero {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 2rem;
}

.hero-frame {
  max-width: 1500px;
  width: 100%;
}

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

.hero-caption {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

.gallery {
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.gallery-item figure {
  margin: 0;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: opacity 0.35s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-item:hover img { opacity: 0.88; }

.gallery-item figcaption {
  margin-top: 1.1rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem 1.2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 100%;
}

.lightbox-stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  box-shadow: 0 8px 40px rgba(28, 26, 23, 0.12);
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox-caption {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-top: 1.3rem;
  text-align: center;
}

.lightbox-views {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.lightbox-views button {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lightbox-views button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-views button.is-active,
.lightbox-views button:hover {
  opacity: 1;
  border-color: var(--accent);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: 0.1em;
}

.lightbox-close {
  top: 1.4rem;
  right: 1.6rem;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  padding: 0.6rem;
}

.lightbox-prev { left: 0.3rem; }
.lightbox-next { right: 0.3rem; }

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { font-size: 1.5rem; }
}

/* ---------- Generic page content (About / Contact) ---------- */

.page-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.6rem 3rem;
}

.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  margin: 0 0 2.6rem;
}

.page-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

.page-content .lede {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
  text-align: center;
  margin-bottom: 2.4rem;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.6rem 3rem;
}

.about-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1 1 50%;
  min-width: 0;
}

.about-text .lede {
  text-align: left;
}

.about-photo {
  flex: 1 1 42%;
  min-width: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .about-layout {
    flex-direction: column;
    gap: 2.4rem;
  }

  .about-photo {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 480px;
  margin: 0 auto;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.contact-form label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form button {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1rem;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.contact-form button:hover {
  background: #fff;
  color: var(--ink);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 3.5rem 0 0;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list a {
  font-family: var(--serif);
  font-size: 1.15rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.2rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.contact-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-list span.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 1.4rem;
}
