@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --page: #f7f1e6;
  --surface: #fff;
  --text: #2b2b2b;
  --muted: #4a4a4a;
  --dark: #3a3a3a;
  --on-dark: #fff;
  --gold: #c18f2f;
  --on-gold: #2b2b2b;
  --border: #d9cfba;
  --body-font: 'Source Sans 3', Arial, sans-serif;
  --heading-font: 'Oswald', 'Arial Narrow', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  box-sizing: border-box;
  color-scheme: light;
  padding-block: var(--safe-top) var(--safe-bottom);
  scroll-padding-top: calc(var(--safe-top) + 90px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #262626;
    --surface: #333;
    --text: #f4efe6;
    --muted: #d6d0c4;
    --dark: #1d1d1d;
    --gold: #d9a441;
    --on-gold: #1d1d1d;
    --border: #555;
    color-scheme: dark;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 20px;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: var(--safe-top);
  background: var(--dark);
  z-index: 10;
}

h1, h2, .brand {
  margin: 0;
  font-family: var(--heading-font);
  text-transform: uppercase;
  line-height: 1.1;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: 2px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: var(--safe-top);
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--dark);
  color: var(--on-dark);
}

.brand {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 5px;
  text-decoration: none;
}

.mark {
  display: block;
  flex: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}

.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  font-weight: 600;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 28px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: var(--on-gold);
  font: 700 22px var(--body-font);
  text-decoration: none;
  cursor: pointer;
}

.button-outline {
  border: 2px solid var(--on-dark);
  background: transparent;
  color: var(--on-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 80px;
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(29, 29, 29, .62), rgba(29, 29, 29, .62)),
    url('../images/hero.jpg') center / cover;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-mark {
  margin: 0 auto 22px;
}

.hero-since {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 10px;
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 600;
  letter-spacing: 4px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 23px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.content-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-rule {
  width: 90px;
  height: 4px;
  margin: 12px 0 28px;
  background: var(--gold);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

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

.gallery figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 18px;
}

.quote-form:not([hidden]) {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.quote-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.quote-form :is(input, select, textarea) {
  width: 100%;
  min-height: 56px;
  padding: 14px;
  border: 2px solid var(--muted);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 20px;
}

.quote-form :is(input, select, textarea):focus,
.button:focus-visible, a:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 2px;
}

.quote-form textarea {
  min-height: 140px;
}

.form-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

.callbox {
  padding: 32px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
}

.callbox-mark {
  margin: 0 auto 14px;
}

.callbox-number {
  display: block;
  margin: 8px 0 16px;
  color: var(--on-dark);
  font: 600 clamp(36px, 7vw, 56px) 'Oswald', sans-serif;
  letter-spacing: 3px;
  text-decoration: none;
}

.site-footer {
  padding: 36px 24px;
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.footer-mark {
  margin: 0 auto 12px;
}

.site-footer .footer-brand {
  margin: 0;
  font-size: 26px;
}
