:root {
  color-scheme: light;
  --ink: #1f252b;
  --muted: #5f6a72;
  --paper: #f7f2ea;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(31, 37, 43, 0.14);
  --accent: #9d3f38;
  --accent-dark: #68302e;
  --nav: #173b4f;
  --nav-ink: #f9f4ed;
  --shadow: 0 24px 70px rgba(26, 32, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(247, 242, 234, 0.95), rgba(247, 242, 234, 0.82)),
    url("../images/page-bg.jpg") center/cover fixed;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 20;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.7rem 1rem;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(330px, 30vw);
  min-width: 260px;
  padding: 4rem 2rem 2rem;
  background: var(--nav);
  color: var(--nav-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  z-index: 10;
}

.portrait {
  width: 144px;
  height: 144px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.portrait-link {
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  margin-top: 2rem;
  color: #e4b7aa;
}

.sidebar h1 {
  margin: 0 0 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.sidebar nav {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.sidebar nav a {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--nav-ink);
  font-weight: 800;
  text-decoration: none;
}

.sidebar nav a:hover,
.sidebar nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: auto 0 1.5rem;
  padding-top: 3rem;
}

.social-links a {
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-ink);
  font-size: 0.78rem;
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--nav-ink);
  color: var(--nav);
  outline: none;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.site-main {
  margin-left: min(330px, 30vw);
}

.hero {
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem);
  background:
    linear-gradient(90deg, rgba(16, 32, 40, 0.82), rgba(16, 32, 40, 0.34)),
    url("../images/TheAnnuciation_v2.jpg") center/cover;
  color: #fff;
}

.hero-copy {
  max-width: 780px;
}

.hero .eyebrow {
  color: #f1c4b4;
}

.hero h2,
.section-heading h2,
.work-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.hero h2 {
  max-width: 760px;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 1.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  outline: none;
}

.content-section {
  padding: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.prose {
  max-width: 860px;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1.15rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 980px;
}

.work-card {
  margin: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.work-card a {
  display: grid;
  min-height: 100%;
  color: var(--ink);
  text-decoration: none;
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-card span {
  padding: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

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

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(157, 63, 56, 0.16);
}

.work-page {
  min-height: 100vh;
  padding: clamp(3.5rem, 7vw, 6rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.work-title {
  font-size: clamp(2.4rem, 5vw, 5.5rem);
}

.work-media {
  display: grid;
  gap: 1.25rem;
}

.work-media img {
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow);
}

.quote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--accent);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 30;
    display: grid;
    gap: 5px;
    width: 48px;
    height: 48px;
    place-content: center;
    border: 0;
    background: var(--accent);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
  }

  .sidebar {
    width: min(330px, 86vw);
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .site-main {
    margin-left: 0;
  }

  .hero,
  .content-section,
  .work-page {
    padding: 5rem 1.25rem 3rem;
  }

  .hero {
    min-height: 82vh;
  }

  .work-grid,
  .work-layout {
    grid-template-columns: 1fr;
  }
}
