/* The Honest Well — preview site. Colors taken from the channel logo. */

@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fef9ee;
  --cream-2: #f3ece0;
  --cream-3: #e7dfd0;
  --paper: #fffdf8;
  --ink: #1e3328;
  --green: #244434;
  --green-soft: #3a5848;
  --muted: #3f5349;
  --leaf: #c86c4c;
  --leaf-deep: #8f3f2a;
  --line: #d8d0bf;
  --shadow: 0 12px 36px rgba(36, 68, 52, 0.08);
  --radius: 1.15rem;
  --measure: 40rem;
  --site: 72rem;
  --font: Outfit, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--leaf-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--green);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--green);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--site));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-3);
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
  margin-right: auto;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--cream);
  overflow-x: hidden;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--leaf-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.btn:hover,
.btn:focus-visible {
  background: #1a3328;
  border-color: #1a3328;
  color: var(--cream);
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.9rem 1.45rem;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 2.5rem 0 3.25rem;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 1.5px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 22rem;
  height: 10rem;
  top: 4.2rem;
  transform: translateX(-50%);
}

.hero::after {
  width: 30rem;
  height: 14rem;
  top: 3rem;
  transform: translateX(-50%);
}

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

.hero-logo {
  width: min(18.5rem, 78vw);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
}

.tagline {
  margin: 0 auto 1.6rem;
  max-width: 22rem;
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--green);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.handle {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.handle:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ---------- Shared sections ---------- */

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--cream-2);
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green);
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--muted);
}

/* ---------- Tips ---------- */

.tips-grid {
  display: grid;
  gap: 1.5rem;
}

.tip-card {
  background: var(--paper);
  border: 1px solid var(--cream-3);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tip-media {
  margin: 0 0 1rem;
  background: #111a15;
  border-radius: calc(var(--radius) - 0.35rem);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-width: 20rem;
  width: 100%;
  align-self: center;
}

.tip-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.tip-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--green);
  text-wrap: balance;
}

.tip-card .summary {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.source {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.source a {
  font-weight: 600;
  color: var(--leaf-deep);
  text-decoration: underline;
}

.source a:hover {
  color: var(--green);
}

.ext::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.2em;
  vertical-align: middle;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6 3h7v7h-2V6.4L4.7 12.7 3.3 11.3 9.6 5H6V3z'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6 3h7v7h-2V6.4L4.7 12.7 3.3 11.3 9.6 5H6V3z'/></svg>") center / contain no-repeat;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Promise ---------- */

.promise-grid {
  display: grid;
  gap: 1.15rem;
}

.promise-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  border: 1px solid var(--cream-3);
}

.promise-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--green);
}

.promise-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--green);
  font-weight: 600;
}

.promise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Coming soon ---------- */

.soon-panel {
  background: var(--paper);
  border-radius: calc(var(--radius) + 0.2rem);
  padding: 1.6rem 1.3rem 1.5rem;
  border: 1px solid var(--cream-3);
  box-shadow: var(--shadow);
}

.soon-panel .lede {
  margin-bottom: 1.2rem;
}

.food-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.food-list li {
  background: var(--cream-2);
  color: var(--green);
  border: 1px solid var(--cream-3);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- About ---------- */

.about-copy {
  max-width: var(--measure);
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green);
  color: var(--cream);
  padding: 2.4rem 0 2rem;
}

.site-footer a {
  color: #ffe8d4;
}

.site-footer a:hover {
  color: #fff;
}

.disclaimer {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.6;
}

.disclaimer strong {
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  margin: 0;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  padding-top: 1.1rem;
}

/* ---------- Layout breakpoints ---------- */

@media (min-width: 640px) {
  .wrap {
    width: min(100% - 3rem, var(--site));
  }

  .hero {
    padding: 3.25rem 0 4rem;
  }

  .tip-media {
    max-width: 16.5rem;
  }
}

@media (min-width: 800px) {
  .tips-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tip-media {
    max-width: 18.5rem;
  }

  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .soon-panel {
    padding: 2rem 2.1rem 1.85rem;
  }
}

@media (min-width: 1400px) {
  .tips-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .tip-card {
    padding: 0.85rem 0.85rem 1.15rem;
  }

  .tip-media {
    max-width: none;
  }

  .tip-card h3 {
    font-size: 1.05rem;
  }
}

@media (min-width: 1080px) {
  .nav-bar {
    padding: 0.8rem 0;
  }
}

@media (max-width: 639px) {
  .nav-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.55rem 0.75rem;
  }

  .brand {
    margin-right: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .nav-bar > .btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    font-size: 0.88rem;
    gap: 0.3rem 0.65rem;
  }
}
