:root {
  color-scheme: light;
  --black: #fbfaf7;
  --black-soft: #f2eee6;
  --ink: #181512;
  --muted: #625b52;
  --quiet: #81786b;
  --line: rgba(24, 21, 18, 0.16);
  --gold: #9d7840;
  --max-width: 1040px;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --black: #050505;
  --black-soft: #0b0b0a;
  --ink: #f5f0e8;
  --muted: #b8b0a5;
  --quiet: #81796f;
  --line: rgba(245, 240, 232, 0.14);
  --gold: #c9aa6f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(157, 120, 64, 0.12), transparent 34rem),
    var(--black);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 170, 111, 0.11), transparent 34rem),
    var(--black);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--black);
  background: var(--ink);
  font-weight: 700;
  transition: transform 180ms ease;
}

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

.site-header,
.hero,
.statement,
.section,
.contact-section,
.site-footer {
  width: min(100% - 44px, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 700;
}

.brand-text,
.header-link,
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-link {
  color: var(--muted);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(201, 170, 111, 0.08);
}

.bulb-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 16px;
  border: 2px solid currentColor;
  border-bottom-width: 0;
  border-radius: 10px 10px 7px 7px;
}

.bulb-icon::before,
.bulb-icon::after {
  position: absolute;
  right: 2px;
  left: 2px;
  content: "";
  background: currentColor;
}

.bulb-icon::before {
  bottom: -3px;
  height: 2px;
}

.bulb-icon::after {
  bottom: -7px;
  height: 2px;
}

.hero {
  display: flex;
  min-height: calc(100svh - 86px);
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 9vw, 108px) 0 clamp(80px, 10vw, 132px);
  animation: rise-in 680ms ease both;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 980px;
  margin-bottom: 30px;
  font-size: clamp(3.4rem, 9vw, 8.25rem);
  line-height: 0.98;
}

h2 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: #050505;
  background: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.statement {
  padding: clamp(38px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement p {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.45rem);
  line-height: 1.35;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(36px, 7vw, 88px);
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.service-item p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  padding: clamp(56px, 8vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.contact-section p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
}

.contact-link {
  display: inline-block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  line-height: 1.08;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.86rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  text-decoration-color: rgba(201, 170, 111, 0.8);
  text-underline-offset: 5px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
  }

  .header-link {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 66px;
  }

  .section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .statement,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 30px, var(--max-width));
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .button {
    width: 100%;
  }

  .header-actions {
    align-items: center;
    flex-direction: row;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 32px;
    text-align: center;
  }

  .contact-link {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gold);
    border-radius: 3px;
    color: #050505;
    background: var(--gold);
    font-family: var(--sans);
    font-size: clamp(1rem, 5.5vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
