:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1f1d1a;
  --muted: #6b665e;
  --accent: #d9480f;
  --radius: 12px;
  --max: 1100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1f1d1a;
    --text: #f1eee9;
    --muted: #a39d93;
    --accent: #ff7a3d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}

.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

main { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin: 0 0 .5rem; line-height: 1.1; }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0 0 2rem; }

.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { filter: brightness(1.08); }

.gallery h2, .contact h2 { font-size: 1.6rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

figure {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / .08);
}
figure img { display: block; width: 100%; height: auto; }
figcaption { padding: .75rem 1rem; color: var(--muted); font-size: .95rem; }

.contact { padding: 3rem 0; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 2rem 1rem;
}

.not-found { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.not-found h1 { font-size: 6rem; color: var(--accent); }

.affiliate-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.affiliate-page main { width: 100%; max-width: 800px; padding: 0 24px; }

.affiliate-page .site-header {
  width: 100%;
  max-width: 800px;
  padding: 24px;
  border-bottom: 1px solid #dfe8e4;
}

.affiliate-brand { min-width: 0; font-size: .95rem; font-weight: 700; }
.affiliate-brand span { overflow-wrap: anywhere; }
.affiliate-page nav { flex-shrink: 0; }
.affiliate-page nav a { padding: 10px 0; }
.affiliate-page a:focus-visible { outline: 3px solid #262626; outline-offset: 5px; }

.affiliate-brand img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}

.affiliate-intro {
  padding: 40px 0 28px;
}

.affiliate-eyebrow {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.affiliate-intro h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.affiliate-intro > p:last-child {
  margin: .35rem 0 0;
  color: var(--muted);
}

.affiliate-list {
  border-top: 1px solid #dfe8e4;
}

.affiliate-item {
  display: flow-root;
  padding: 28px 0;
  border-bottom: 1px solid #dfe8e4;
}

.affiliate-logo {
  float: right;
  display: grid;
  width: 160px;
  height: 64px;
  place-items: center;
  margin: 0 0 12px 24px;
}

.affiliate-logo img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.affiliate-copy h2 {
  margin: 0 0 .25rem;
  font-size: 1.2rem;
}

.affiliate-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.affiliate-button span { font-size: 1.25rem; }

.affiliate-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 220px;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}

.affiliate-button:hover { background: #005348; }

.affiliate-discount { clear: both; margin-bottom: 12px; }

.discount-code {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 220px;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px dashed var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.discount-code code { font-size: .9rem; user-select: all; }
.discount-code > span { min-width: 7ch; text-align: right; font-size: .8rem; }
.discount-code:hover { background: #edf6f3; border-style: solid; }
.discount-code:focus-visible { outline: 3px solid #262626; outline-offset: 5px; }
.discount-code:disabled { cursor: progress; }
.discount-status {
  display: block;
  min-height: 1.6em;
  margin-top: 4px;
  color: var(--muted);
  font-size: .8rem;
}

.affiliate-disclosure {
  margin: 24px 0 40px;
  color: var(--muted);
  font-size: .8rem;
}

.affiliate-page .home-footer { margin-top: auto; }

@media (max-width: 600px) {
  .affiliate-page .site-header { padding: 16px 24px; }
  .affiliate-intro { padding-top: 28px; }
  .affiliate-logo { width: 112px; height: 48px; margin-left: 16px; }
  .affiliate-logo img { height: 48px; }
  .affiliate-button, .discount-code { width: 100%; }
}

.home-page,
.affiliate-page {
  --text: #262626;
  --muted: #626b68;
  --accent: #006b60;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  background-image: radial-gradient(#dfe8e4 .7px, transparent .7px);
  background-size: 24px 24px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.home-main {
  width: 100%;
  max-width: 680px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  text-align: center;
}

.home-logo {
  display: block;
  width: min(280px, 72%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 24px;
}

.home-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-main h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.15;
  text-wrap: balance;
}

.home-main h1 span { display: inline-block; }

.home-description {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1rem;
}

.home-linktree {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 260px;
  max-width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.home-linktree:hover { background: #005348; }
.home-linktree:focus-visible { outline: 3px solid #262626; outline-offset: 5px; }
.home-linktree span { font-size: 1.25rem; }

.home-affiliates {
  margin-top: 12px;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.home-affiliates:hover { background: #edf6f3; }

.home-footer {
  padding: 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 480px) {
  .home-main { padding-top: 32px; }
  .home-main h1 { font-size: 2rem; }
  .home-logo { width: min(240px, 78%); }
}
