:root {
  --bg: #f7f3ec;
  --bg-soft: #eee6d8;
  --ink: #151515;
  --muted: #6d665c;
  --line: rgba(21, 21, 21, 0.14);
  --dark: #11100f;
  --dark-soft: #1d1b18;
  --gold: #c9a45d;
  --gold-dark: #9a7738;
  --white: #fffaf1;
  --header-bg: rgba(247, 243, 236, 0.88);
  --card-bg: rgba(255, 250, 241, 0.58);
  --fact-bg: rgba(255, 250, 241, 0.5);
  --brand-border: rgba(201, 164, 93, 0.45);
  --radius: 8px;
  --shadow: 0 24px 70px rgba(20, 17, 12, 0.16);
  --max: 1180px;
}

:root[data-theme="rose"] {
  --bg: #fff4f6;
  --bg-soft: #f4dfe4;
  --ink: #23171b;
  --muted: #735c64;
  --line: rgba(80, 38, 52, 0.16);
  --dark: #25151d;
  --dark-soft: #34202a;
  --gold: #d98c9c;
  --gold-dark: #9f5062;
  --white: #fff8f9;
  --header-bg: rgba(255, 244, 246, 0.9);
  --card-bg: rgba(255, 248, 249, 0.68);
  --fact-bg: rgba(255, 248, 249, 0.62);
  --brand-border: rgba(217, 140, 156, 0.48);
  --shadow: 0 24px 70px rgba(72, 30, 44, 0.16);
}

:root[data-theme="mono"] {
  --bg: #f5f5f3;
  --bg-soft: #e2e2de;
  --ink: #111;
  --muted: #61615c;
  --line: rgba(17, 17, 17, 0.16);
  --dark: #080808;
  --dark-soft: #1a1a18;
  --gold: #d8d8d2;
  --gold-dark: #60605b;
  --white: #fbfbf6;
  --header-bg: rgba(245, 245, 243, 0.9);
  --card-bg: rgba(251, 251, 246, 0.7);
  --fact-bg: rgba(251, 251, 246, 0.64);
  --brand-border: rgba(216, 216, 210, 0.46);
  --shadow: 0 24px 70px rgba(10, 10, 10, 0.13);
}

:root[data-theme="forest"] {
  --bg: #f0f4ed;
  --bg-soft: #dbe7d5;
  --ink: #142017;
  --muted: #5c6b5c;
  --line: rgba(28, 65, 38, 0.16);
  --dark: #0f1d14;
  --dark-soft: #1a2c20;
  --gold: #9fb96f;
  --gold-dark: #5e7b38;
  --white: #fbfff6;
  --header-bg: rgba(240, 244, 237, 0.9);
  --card-bg: rgba(251, 255, 246, 0.68);
  --fact-bg: rgba(251, 255, 246, 0.6);
  --brand-border: rgba(159, 185, 111, 0.52);
  --shadow: 0 24px 70px rgba(25, 58, 34, 0.16);
}

:root[data-theme="ocean"] {
  --bg: #eef6f7;
  --bg-soft: #d6e9ed;
  --ink: #102028;
  --muted: #566b72;
  --line: rgba(23, 77, 94, 0.16);
  --dark: #0d1c24;
  --dark-soft: #172d38;
  --gold: #7fc7c8;
  --gold-dark: #3f858c;
  --white: #f6feff;
  --header-bg: rgba(238, 246, 247, 0.9);
  --card-bg: rgba(246, 254, 255, 0.68);
  --fact-bg: rgba(246, 254, 255, 0.62);
  --brand-border: rgba(127, 199, 200, 0.52);
  --shadow: 0 24px 70px rgba(24, 65, 82, 0.16);
}

:root[data-theme="wine"] {
  --bg: #f8f1f0;
  --bg-soft: #ead9d6;
  --ink: #211414;
  --muted: #705d5a;
  --line: rgba(86, 31, 31, 0.16);
  --dark: #241010;
  --dark-soft: #351919;
  --gold: #d0a05d;
  --gold-dark: #8e513a;
  --white: #fff8f5;
  --header-bg: rgba(248, 241, 240, 0.9);
  --card-bg: rgba(255, 248, 245, 0.68);
  --fact-bg: rgba(255, 248, 245, 0.62);
  --brand-border: rgba(208, 160, 93, 0.52);
  --shadow: 0 24px 70px rgba(69, 25, 25, 0.16);
}

:root[data-theme="sand"] {
  --bg: #f8f0df;
  --bg-soft: #ead8b9;
  --ink: #201a12;
  --muted: #6c614f;
  --line: rgba(98, 76, 39, 0.17);
  --dark: #1d1710;
  --dark-soft: #2d2418;
  --gold: #b88a45;
  --gold-dark: #825d2b;
  --white: #fff9ed;
  --header-bg: rgba(248, 240, 223, 0.9);
  --card-bg: rgba(255, 249, 237, 0.7);
  --fact-bg: rgba(255, 249, 237, 0.64);
  --brand-border: rgba(184, 138, 69, 0.54);
  --shadow: 0 24px 70px rgba(79, 56, 25, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.page-top {
  position: absolute;
  top: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.desktop-nav,
.header-actions,
.hero-actions,
.hero-facts,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--dark);
  color: var(--gold);
  border: 1px solid var(--brand-border);
  border-radius: 50%;
  font-size: 13px;
}

.desktop-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a,
.header-cta,
.button,
.footer a {
  text-decoration: none;
}

.desktop-nav a:hover,
.footer a:hover {
  color: var(--gold-dark);
}

.header-actions {
  gap: 12px;
}

.theme-picker {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px 0 12px;
  background: var(--fact-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.theme-picker span {
  text-transform: uppercase;
}

.theme-picker select {
  width: 150px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
}

.header-cta {
  padding: 0 18px;
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
}

.button {
  border: 1px solid transparent;
  padding: 13px 20px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: #12100d;
}

.button.primary:hover {
  background: #d9b66f;
}

.button.secondary {
  border-color: rgba(21, 21, 21, 0.18);
  color: var(--ink);
}

.button.secondary.light {
  border-color: rgba(255, 250, 241, 0.24);
  color: var(--white);
}

.button.copy {
  width: 100%;
  margin-top: 12px;
  background: var(--white);
  color: var(--ink);
}

.hero,
.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100svh - 68px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 6vw, 78px) 0;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-subtitle {
  max-width: 620px;
  color: var(--gold-dark);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 800;
}

.hero-lead,
.section-heading p,
.prose p,
.address-panel p,
.contact-panel p {
  color: var(--muted);
  font-size: 18px;
}

.hero-lead {
  max-width: 640px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-facts {
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  margin: 0;
}

.hero-facts div {
  min-width: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--fact-bg);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  position: absolute;
  inset: 28px -18px -18px 28px;
  z-index: -1;
  border: 1px solid rgba(201, 164, 93, 0.5);
  content: "";
}

.hero-media img,
.image-card img,
.personal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-media img {
  aspect-ratio: 4 / 5;
  object-position: 50% 34%;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(62px, 9vw, 108px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.intro-grid,
.location-grid,
.contact-grid,
.personal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: center;
}

.prose {
  max-width: 720px;
}

.image-card {
  height: min(690px, 78vh);
  min-height: 460px;
}

.image-card img {
  object-position: 50% 34%;
}

.dark {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background: var(--dark);
  color: var(--white);
}

.dark .eyebrow {
  color: var(--gold);
}

.dark p {
  color: rgba(255, 250, 241, 0.72);
}

.achievement-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.achievement-grid article,
.feature-grid article,
.address-panel,
.contact-form,
.contact-panel {
  border-radius: var(--radius);
}

.achievement-grid article {
  min-height: 166px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 241, 0.14);
  background: var(--dark-soft);
}

.achievement-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.achievement-grid h3 {
  margin: 0;
}

.competition-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.competition-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  min-height: 188px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.fit {
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 16px 16px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 16px;
  color: var(--gold-dark);
  content: "✓";
}

.personal {
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1fr);
}

.personal-media {
  min-height: 410px;
}

.personal-media img {
  object-position: 50% 45%;
}

.location-grid {
  align-items: stretch;
}

.address-panel {
  padding: clamp(26px, 4vw, 42px);
  background: var(--dark);
  color: var(--white);
}

.address-panel h3 {
  font-size: clamp(30px, 4vw, 48px);
}

.address-panel p {
  color: rgba(255, 250, 241, 0.76);
}

.location iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(0.78) contrast(1.04);
}

.contact-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.68fr);
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  color: #332d24;
  font-size: 13px;
  font-weight: 900;
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(201, 164, 93, 0.3);
  border-color: var(--gold-dark);
}

.contact-panel {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 250, 241, 0.16);
  background: var(--dark-soft);
}

.message-preview {
  margin-top: 24px;
}

.preview-title {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
}

#generated-message {
  background: #fffaf1;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 52px);
  background: #0d0c0b;
  color: rgba(255, 250, 241, 0.72);
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero,
  .intro-grid,
  .location-grid,
  .contact-grid,
  .personal,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 560px;
  }

  .achievement-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 12px;
  }

  .header-actions {
    width: calc(100% - 50px);
    justify-content: flex-end;
  }

  .theme-picker {
    min-height: 40px;
    flex: 1 1 auto;
    max-width: 220px;
  }

  .theme-picker span {
    display: none;
  }

  .theme-picker select {
    width: 100%;
  }

  .hero,
  .section {
    width: min(100% - 28px, var(--max));
  }

  .hero-actions,
  .hero-actions .button,
  .button.primary.full {
    width: 100%;
  }

  .hero-facts div {
    width: 100%;
  }

  .image-card,
  .personal-media {
    min-height: 330px;
    height: auto;
  }

  .achievement-grid,
  .feature-grid,
  .competition-strip,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
