/* Nosí — first homepage draft
   Palette: sun-warmed cream, terracotta, yerba green, a little sun gold.
   Type: Fraunces (display) + Source Sans 3 (body/UI).
*/

:root {
  --cream: #F4E9DC;
  --paper: #FBF6EE;
  --sand: #E7D6C4;
  --ink: #1C1814;
  --ink-muted: #5E4E44;
  --terracotta: #C2512C;
  --terracotta-deep: #8F3A22;
  --terracotta-btn: #A84420;
  --clay: #D4785A;
  --yerba-deep: #2A3F30;
  --yerba: #3E5C43;
  --leaf: #6A8A56;
  --sun: #DFA33A;
  --foam: #FBF6EE;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;

  --header-h: 4.25rem;
  --radius: 1.15rem;
  --radius-sm: 0.7rem;
  --shadow: 0 12px 32px rgba(28, 24, 20, 0.1);
  --content: 72rem;
  --narrow: 38rem;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--terracotta-btn);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--foam);
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--foam);
}

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

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

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
  padding-top: 0.15em; /* keep the í accent from clipping */
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.2rem 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--terracotta-btn);
}

.nav-feedback {
  color: var(--terracotta-deep) !important;
}

/* Buttons
   -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--terracotta-btn);
  color: var(--foam);
  border-color: var(--terracotta-btn);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  color: var(--foam);
}

.btn-secondary {
  background: var(--yerba-deep);
  color: var(--foam);
  border-color: var(--yerba-deep);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--yerba);
  border-color: var(--yerba);
  color: var(--foam);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--terracotta-deep);
  color: var(--terracotta-deep);
}

.btn-block {
  width: 100%;
}

.btn:focus-visible,
.nav a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

/* Hero
   -------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.75rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 3.5rem);
}

.hero-ornament {
  position: absolute;
  width: min(28vw, 180px);
  pointer-events: none;
  opacity: 0.9;
}

.hero-ornament-tl {
  top: 0.4rem;
  left: 0.2rem;
}

.hero-ornament-br {
  right: 0.2rem;
  bottom: 0.4rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}

.eyebrow-light {
  color: var(--sun);
}

.wordmark {
  margin: 0;
  font-size: clamp(5.1rem, 18vw, 9.5rem);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 0.9;
  letter-spacing: -0.045em;
  padding: 0.08em 0 0.12em; /* room for the accent on í */
  color: var(--ink);
}

.pronunciation {
  margin: 0.15rem 0 1.15rem;
  color: var(--ink-muted);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.pronunciation span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  margin-right: 0.4rem;
}

.tagline {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  color: var(--yerba-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-cans {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  margin: 0 auto -0.5rem;
}

.cans-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(28, 24, 20, 0.16));
}

/* Tile band — baldosa-inspired
   -------------------------------------------------- */
.tile-band {
  height: 4.75rem;
  background-color: #D9C6B0;
  background-image: url("assets/tile.svg");
  background-size: 4.75rem 4.75rem;
  background-repeat: repeat-x;
  background-position: center;
  border-top: 1px solid color-mix(in srgb, var(--terracotta) 28%, #D9C6B0);
  border-bottom: 1px solid color-mix(in srgb, var(--yerba) 28%, #D9C6B0);
}

.tile-band-alt {
  background-position: 2.375rem center;
}

/* Sections
   -------------------------------------------------- */
.section {
  padding: 4.5rem 1.5rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: var(--narrow);
}

.lede {
  font-size: 1.25rem;
  max-width: 36rem;
  color: var(--ink-muted);
}

.section-inner.narrow .lede {
  max-width: none;
}

/* What it is
   -------------------------------------------------- */
.section-what {
  background: var(--paper);
}

.fact-tiles {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.fact-tiles li {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.fact-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
}

.fact-tiles h3 {
  color: var(--yerba-deep);
}

.fact-tiles p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Story
   -------------------------------------------------- */
.section-story {
  background: var(--yerba-deep);
  color: var(--foam);
}

.section-story h2 {
  color: var(--foam);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.story-copy p {
  font-size: 1.15rem;
  max-width: 38rem;
  color: color-mix(in srgb, var(--foam) 86%, var(--sand));
}

.story-aside {
  text-align: center;
}

.gourd-illust {
  width: min(100%, 16rem);
  margin: 0 auto;
}

.aside-caption {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--foam) 75%, var(--sun));
}

/* Testing note
   -------------------------------------------------- */
.section-testing {
  background: var(--cream);
}

.note-card {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-left: 6px solid var(--sun);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  max-width: 46rem;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.note-card .btn {
  margin-top: 1.25rem;
}

/* Waitlist + feedback
   -------------------------------------------------- */
.section-waitlist {
  background: color-mix(in srgb, var(--cream) 70%, var(--sand));
}

.section-feedback {
  background: color-mix(in srgb, var(--paper) 82%, var(--leaf));
}

.signup-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.optional {
  font-weight: 500;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, var(--sand));
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
}

.field input:hover,
.field textarea:hover {
  border-color: color-mix(in srgb, var(--ink) 35%, var(--sand));
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--terracotta-btn);
}

.field .error {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta-deep);
}

.form-note {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.form-thanks {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--leaf);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--yerba-deep);
}

.signup-form.is-sent {
  display: none;
}

/* Footer
   -------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--foam) 82%, var(--sand));
  padding: 2.5rem 1.5rem 3rem;
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 0.9rem;
  color: var(--foam);
}

.footer-brand .brand-name {
  color: var(--foam);
}

.site-footer p {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.footer-domain {
  margin-top: 0.85rem;
  font-weight: 650;
  color: var(--foam);
}

.footer-domain span {
  font-weight: 400;
  color: color-mix(in srgb, var(--foam) 65%, var(--sand));
}

/* Responsive
   -------------------------------------------------- */
@media (min-width: 720px) {
  .fact-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .hero {
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    min-height: calc(100vh - var(--header-h) - 3.5rem);
  }

  .hero-copy {
    text-align: left;
    margin: 0;
    padding-left: 1.25rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-cans {
    width: 100%;
    max-width: 30rem;
    margin: 0 0 0 auto;
  }

  .hero-ornament-tl {
    left: 0.4rem;
    top: 0.8rem;
  }

  .fact-tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .story-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }

  .section {
    padding: 5.25rem 2rem;
  }

  .note-card {
    padding: 2.5rem 2.5rem;
  }
}

@media (max-width: 719px) {
  :root {
    --header-h: 6.15rem;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.55rem 1rem 0.45rem;
    align-items: center;
    gap: 0.35rem 1rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.25rem 0.6rem;
    font-size: 0.84rem;
    padding: 0.15rem 0 0.2rem;
    border-top: 1px solid color-mix(in srgb, var(--sand) 80%, var(--terracotta) 20%);
  }

  .hero {
    padding: 1.75rem 1rem 2rem;
    min-height: 0;
    gap: 1.25rem;
  }

  .hero-actions .btn,
  .note-card .btn {
    width: 100%;
  }

  .note-card .btn {
    font-size: 0.95rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    white-space: nowrap;
  }

  .section {
    padding: 3.25rem 1.1rem;
  }

  .wordmark {
    font-size: clamp(4.4rem, 26vw, 6.4rem);
  }

  .hero-ornament {
    width: 22vw;
    opacity: 0.7;
  }

  .tile-band {
    height: 3.75rem;
    background-size: 3.75rem 3.75rem;
  }
}

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

  .btn {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active {
    transform: translateY(1px);
  }
}
