* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  color: white;
  background: #111;
}

body.wood-bg {
  background:
    linear-gradient(rgba(10, 8, 6, .2), rgba(10, 8, 6, .2)),
    url('images/about-bg.jpg') center / cover no-repeat;
}

body.light-bg {
  background: #fdfcfa;
  color: #1a1a1a;
}

body.light-bg .site-nav .logo,
body.light-bg .site-nav .nav-links a {
  text-shadow: none;
}

body.light-bg .page p,
body.light-bg .page a.text-link {
  color: #1a1a1a;
}

body.light-bg .site-nav {
  background: rgba(253, 252, 250, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

a {
  color: inherit;
}

/* Nav */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
}

.site-nav .logo {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 6px rgba(0,0,0,.28);
}

.site-nav .nav-links {
  display: flex;
  gap: 28px;
}

.site-nav .nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  text-shadow: 0 2px 6px rgba(0,0,0,.28);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.site-nav .nav-links a:hover {
  opacity: 1;
}

.site-nav .nav-links a.active {
  opacity: 1;
  border-bottom-color: currentColor;
}

@media (max-width: 700px) {
  .site-nav {
    padding: 20px 22px;
  }

  .site-nav .nav-links {
    gap: 18px;
  }

  .site-nav .nav-links a {
    font-size: 12px;
  }
}

/* Home hero */

main.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .content {
  position: absolute;
  left: 32px;
  bottom: calc(30px + env(safe-area-inset-bottom));
  animation: fade-in 1.2s ease both;
  text-shadow: 0 2px 6px rgba(0,0,0,.28);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: .9;
}

.tagline {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 25px);
  font-style: italic;
}

.coming-soon {
  margin: 22px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {

  .hero .content {
    left: 22px;
    bottom: calc(24px + env(safe-area-inset-bottom));
  }

  h1 {
    font-size: clamp(34px, 8vw, 52px);
  }

  .tagline {
    margin-top: 12px;
    font-size: 18px;
  }

  .coming-soon {
    margin-top: 18px;
    font-size: 10px;
    letter-spacing: .24em;
  }

}

/* Standard content pages (About, The Windsor) */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 150px 32px 100px;
  min-height: 100vh;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 56vh;
  min-height: 380px;
  max-height: 620px;
}

.hero-banner img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-banner-content {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  max-width: 520px;
  background: rgba(253, 252, 250, .32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 30px 34px 28px;
  box-shadow: 0 16px 40px rgba(20, 15, 10, .11);
}

.hero-banner-content h1 {
  font-size: clamp(32px, 4.5vw, 48px);
}

.hero-banner-content .tagline {
  margin-top: 10px;
}

.hero-banner-content p:not(.tagline) {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.page.has-hero {
  padding-top: 56px;
  min-height: 0;
}

.content-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 15, 10, .1), 0 2px 10px rgba(20, 15, 10, .05);
  padding: 44px 48px 40px;
}

.content-card p:first-child {
  margin-top: 0;
}

.content-card .section-lead {
  font-weight: 700;
}

.page h1 {
  font-size: clamp(38px, 6vw, 58px);
}

.page .tagline {
  margin-top: 16px;
}

.page p {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: white;
}

.page a.text-link {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page.page-wide {
  max-width: 1000px;
}

.page .cta {
  margin-top: 32px;
  display: inline-block;
  font-weight: 700;
  letter-spacing: .02em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  margin-top: 18px;
}

.gallery + p {
  margin-top: 38px;
}

.gallery figure {
  margin: 0;
  cursor: pointer;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery figure:hover img {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 15, 10, .18);
}

.gallery figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}

body.light-bg .gallery figcaption {
  color: rgba(26, 26, 26, .6);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(10, 8, 6, .9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.lightbox-caption {
  margin: 18px 0 0;
  color: white;
  font-size: 14px;
  letter-spacing: .02em;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 700px) {
  .page {
    padding: 120px 22px 80px;
  }

  .page.has-hero {
    padding-top: 32px;
  }

  .hero-banner {
    height: 62vh;
    min-height: 460px;
    max-height: 620px;
  }

  .hero-banner-content {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    padding: 22px 20px 20px;
    border-radius: 12px;
  }

  .hero-banner-content h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .hero-banner-content .tagline {
    font-size: clamp(14px, 4.2vw, 18px);
  }

  .hero-banner-content p:not(.tagline) {
    font-size: clamp(12.5px, 3.6vw, 15px);
  }

  .content-card p {
    font-size: clamp(12.5px, 3.6vw, 15px);
  }

  .content-card {
    padding: 28px 22px 26px;
    border-radius: 10px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px 8px;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}
