@font-face {
  font-family: "Averia Sans Libre";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/averia-sans-libre-400.woff2") format("woff2");
}

:root {
  --amber: #efc86f;
  --amber-deep: #de6d00;
  --amber-link: #b85c00;
  --ink: #4f555a;
  --muted: #747a7e;
  --line: #e2ded4;
  --paper: #fff;
  --footer: #2d2d2d;
  --page-width: 1120px;
  --content-width: 840px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--amber) url("../images/background.png") center top / cover fixed no-repeat;
  font-family: "Averia Sans Libre", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

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

a {
  color: var(--amber-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--amber-deep);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(222, 109, 0, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: #222;
  background: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding: 20px 20px 0;
}

.brand {
  display: block;
  width: min(100%, 1000px);
  margin: 0 auto;
}

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

.nav-shell {
  width: min(100%, var(--page-width));
  min-height: 52px;
  margin: 0 auto;
  background: var(--paper);
  border-bottom: 5px solid var(--amber);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 4px auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  gap: 10px;
}

.site-nav a {
  padding: 8px 16px;
  color: #d18a1a;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--amber-deep);
}

.page-shell {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto 92px;
  background: var(--paper);
}

.home-content {
  padding: 68px 50px 90px;
}

.intro {
  width: min(100%, var(--content-width));
  margin: 0 auto 54px;
}

.intro h1,
.contact-page h1 {
  margin: 0 0 32px;
  color: var(--amber-deep);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.intro p {
  margin: 0 0 20px;
}

.closure-note {
  padding: 18px 20px;
  border-left: 4px solid #e33;
  background: #fff8f6;
}

.closure-note strong {
  color: #d42020;
  font-weight: 400;
}

.profiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4px minmax(0, 1fr);
  width: min(100%, var(--content-width));
  margin: 0 auto;
  gap: 44px;
}

.profile-divider {
  width: 4px;
  min-height: 460px;
  background: var(--amber);
}

.profile {
  display: grid;
  align-content: start;
}

.profile-role {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

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

.contact-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.contact-list svg {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  color: #7c8185;
  stroke-width: 1.8;
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--amber-deep);
}

.profile-photo {
  width: 230px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid var(--amber-deep);
}

.gallery-section {
  width: min(100%, var(--content-width));
  margin: 72px auto 0;
}

.carousel {
  position: relative;
  overflow: hidden;
  background: #f4f1eb;
}

.carousel-track {
  display: flex;
  transition: transform 450ms ease;
}

.carousel-slide {
  flex: 0 0 100%;
  display: grid;
  min-width: 0;
  margin: 0;
  place-items: center;
}

.carousel-slide img {
  width: 100%;
  height: 540px;
  object-fit: contain;
}

.carousel-button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(45, 45, 45, 0.68);
  border: 0;
  transform: translateY(-50%);
  place-items: center;
  cursor: pointer;
}

.carousel-button:hover {
  background: rgba(45, 45, 45, 0.9);
}

.carousel-button svg {
  width: 24px;
  height: 24px;
}

.carousel-button.prev {
  left: 12px;
}

.carousel-button.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(45, 45, 45, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  background: var(--amber-deep);
}

.text-page {
  padding: 68px clamp(28px, 7vw, 100px) 90px;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.text-page-inner {
  width: min(100%, 880px);
  margin: 0 auto;
}

.text-page h1 {
  margin: 0 0 32px;
  color: var(--amber-deep);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
}

.text-page h2 {
  margin: 38px 0 12px;
  color: var(--amber-deep);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.4;
}

.text-page h3 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 400;
}

.text-page p,
.text-page ul {
  margin-top: 0;
  margin-bottom: 18px;
}

.text-page address {
  margin-bottom: 18px;
  font-style: normal;
}

.text-page li + li {
  margin-top: 6px;
}

.contact-page {
  min-height: 540px;
  display: grid;
  align-items: center;
  padding: 80px clamp(28px, 8vw, 120px);
}

.contact-copy {
  width: min(100%, 800px);
  margin: 0 auto;
}

.contact-copy h2 {
  margin: 34px 0 10px;
  color: var(--amber-deep);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
}

.contact-copy p,
.contact-options {
  margin-top: 0;
  margin-bottom: 20px;
}

.status-note {
  padding: 16px 18px;
  border-left: 4px solid var(--amber-deep);
  background: #fff8f0;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  gap: 28px;
  list-style: none;
}

.contact-options li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.55);
  background: var(--footer);
}

.footer-inner {
  display: flex;
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 92px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
  color: #fff;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
    background-attachment: scroll;
  }

  .site-header {
    padding: 6px 10px 0;
  }

  .brand {
    width: 100%;
  }

  .nav-shell {
    width: 100%;
    min-height: 48px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    padding: 6px 12px 12px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
    padding: 8px 12px;
    text-align: center;
  }

  .page-shell {
    width: calc(100% - 20px);
    margin-bottom: 28px;
  }

  .home-content,
  .text-page {
    padding: 42px 20px 56px;
  }

  .intro {
    margin-bottom: 42px;
  }

  .intro h1,
  .contact-page h1 {
    margin-bottom: 24px;
    font-size: 22px;
  }

  .closure-note {
    padding: 14px 15px;
  }

  .profiles {
    display: block;
  }

  .profile-divider {
    width: 100%;
    min-height: 3px;
    height: 3px;
    margin: 42px 0;
  }

  .profile-photo {
    width: min(100%, 280px);
  }

  .gallery-section {
    margin-top: 54px;
  }

  .carousel-slide img {
    height: min(118vw, 520px);
    object-fit: cover;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
  }

  .text-page h1 {
    font-size: 28px;
  }

  .text-page h2 {
    margin-top: 32px;
    font-size: 21px;
  }

  .contact-page {
    min-height: 480px;
    padding: 50px 22px 64px;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    min-height: 122px;
    padding: 24px 0;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-track {
    transition: none;
  }
}
