
:root {
  --ink: #3d3d3d;
  --muted: #5e5a5b;
  --nav: #fcf8f8;
  --paper: #fdfdfd;
  --footer: #fcf7f6;
  --accent: #e7796b;
  --current: #b5b5b5;
  --sketch: #e6e3e4;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "PT Serif", Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--paper);
}

body.sketch {
  background-color: var(--sketch);
  background-image: url("../images/background.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  min-height: 100vh;
}

body.sketch.home {
  background-image: url("images/background.jpg");
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.site-nav {
  background: var(--nav);
  margin-bottom: 48px;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-burger { display: none; }

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.2vw;
  min-height: 64px;
  margin: 0;
  padding: 0 20px;
}

.nav-links a {
  font-family: Lato, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
}

.nav-links a[aria-current="page"] { color: var(--current); }

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

.brand {
  display: block;
  width: min(440px, 72vw);
  margin: 8px auto 52px;
}

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

.cards {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  display: block;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-body {
  padding: 28px 28px 36px;
  text-align: center;
}

.card h2 {
  margin: 0 0 14px;
  font-family: Lato, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.card:hover h2,
.card:focus-visible h2 { color: var(--accent); }

.panel {
  width: min(820px, calc(100% - 48px));
  margin: 10px auto 72px;
  background: var(--paper);
  padding: 72px 48px 84px;
  text-align: center;
}

.panel h1,
.gallery h1 {
  margin: 0 0 28px;
  font-family: Lato, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.panel p { margin: 0; font-size: 16px; }

.panel a { color: var(--ink); }
.panel a:hover { color: var(--accent); }

.gallery {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto 72px;
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 42px;
}

.lead {
  margin: -8px auto 36px;
  max-width: 38em;
  text-align: center;
  font-size: 16px;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.thumb {
  display: block;
  width: 196px;
  height: 196px;
  overflow: hidden;
  background: #eee;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.thumb:hover img,
.thumb:focus-visible img { transform: scale(1.06); }

.site-footer {
  background: var(--footer);
  min-height: 92px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 18, 0.92);
  padding: 64px 72px 48px;
}

.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.lightbox-figure img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-figure figcaption {
  margin-top: 16px;
  color: #fff;
  font-family: Lato, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  font-size: 15px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: Lato, sans-serif;
  line-height: 1;
}

.lightbox-close {
  top: 12px;
  right: 18px;
  font-size: 42px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 54px;
  padding: 8px 12px;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

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

@media (max-width: 860px) {
  .site-nav { margin-bottom: 28px; }

  .nav-burger {
    display: block;
    text-align: center;
    padding: 16px;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav-burger-close { display: none; }
  .nav-toggle:checked ~ .nav-burger .nav-burger-open { display: none; }
  .nav-toggle:checked ~ .nav-burger .nav-burger-close { display: inline; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding: 8px 20px 22px;
  }

  .nav-toggle:checked ~ .nav-links { display: flex; }

  .cards { grid-template-columns: 1fr; width: min(460px, calc(100% - 32px)); }
  .panel { padding: 48px 22px 56px; }
  .brand { margin-bottom: 32px; }
  .thumb { width: calc(50% - 4px); height: auto; aspect-ratio: 1; }
  .lightbox { padding: 56px 12px 28px; }
  .lightbox-prev, .lightbox-next { font-size: 40px; }
}
