/* Simple Stack Co
   Edit the :root colors below to change the palette.
   Type: Fraunces (headings) and Outfit (everything else). */

:root {
  --teal: #0d7f77;
  --teal-deep: #085a54;
  --teal-shadow: #073a37;
  --coral: #ff5440;
  --coral-deep: #d63426;
  --yellow: #ffd22e;
  --yellow-deep: #dba010;
  --cream: #fff7e6;
  --cream-dim: #ffecc4;
  --ink: #102422;
  --max: 40rem;
  --wide: 68rem;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --shadow: 4px 4px 0 var(--ink);
  --nav-h: 4.25rem;
}

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

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  padding: 0.5rem 0.85rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 0.5rem;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--teal);
  color: var(--cream);
  border-bottom: 3px solid transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-nav.is-scrolled {
  background: var(--teal-deep);
  border-bottom-color: var(--teal-shadow);
  box-shadow: 0 8px 24px rgba(7, 58, 55, 0.28);
}

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

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
}

.nav-brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  border: 2px solid var(--cream);
  flex: 0 0 auto;
}

.nav-brand span {
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  color: var(--cream);
  border: 3px solid var(--cream);
  border-radius: 0.7rem;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}

.site-menu a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 0.55rem;
}

.site-menu a:hover,
.site-menu a[aria-current="true"] {
  background: rgba(255, 247, 230, 0.14);
}

.hero {
  background: var(--teal);
  color: var(--cream);
  text-align: center;
  padding: clamp(2.75rem, 8vw, 5.5rem) var(--pad) clamp(3.5rem, 9vw, 6rem);
}

.hero-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.logo-frame {
  display: inline-flex;
  padding: 6px;
  margin: 0 0 1.5rem;
  background: var(--cream);
  border-radius: 1.6rem;
  line-height: 0;
}

.logo {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 1.25rem;
  display: block;
}

.wordmark {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
  font-optical-sizing: auto;
  font-size: clamp(2.35rem, 8vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.rule {
  display: block;
  width: 5.5rem;
  height: 0.25rem;
  margin: 1.1rem auto 1rem;
  background: var(--yellow);
  border: 0;
  border-radius: 99px;
}

.tagline {
  margin: 0;
  font-size: clamp(1.125rem, 2.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  background: var(--coral);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 3px solid var(--ink);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-secondary {
  background: var(--cream);
  color: var(--ink);
}

.section {
  padding: clamp(3.25rem, 8vw, 5.25rem) var(--pad);
}

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

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

.section h2 {
  margin: 0 0 0.85rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
  font-optical-sizing: auto;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
}

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

.lead {
  max-width: 40rem;
  margin-bottom: 1.75rem !important;
  font-size: 1.08rem;
}

.subhead {
  margin: 2.5rem 0 0.7rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  letter-spacing: -0.02em;
}

.shop {
  background: var(--cream);
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tile {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.3rem;
}

.tile h3 {
  margin: 0 0 0.4rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tile p {
  margin: 0;
}

.tile-meta {
  margin: 0 0 0.25rem !important;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  width: auto;
  margin-top: 0.9rem !important;
  padding: 0.2rem 0.55rem;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 99px;
}

.tile-product {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tile-mark {
  position: relative;
  width: 4.5rem;
  height: 4.35rem;
  margin: 0 0 0.9rem;
}

.tile-mark .page {
  position: absolute;
  width: 2.85rem;
  height: 3.15rem;
  border: 3px solid var(--ink);
  border-radius: 0.45rem;
}

.tile-mark .page-3 {
  left: 1.15rem;
  top: 0.85rem;
  background: var(--yellow);
}

.tile-mark .page-2 {
  left: 0.55rem;
  top: 0.4rem;
  background: var(--coral);
}

.tile-mark .page-1 {
  left: 0;
  top: 0;
  background: var(--cream);
}

.how {
  background: var(--teal-deep);
  color: var(--cream);
}

.how .lead {
  color: var(--cream);
}

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

.steps li {
  background: var(--teal);
  border: 3px solid var(--ink);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.35rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  margin: 0 0 0.7rem !important;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.about {
  background: var(--cream);
  color: var(--ink);
}

.faq {
  background: var(--cream-dim);
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.faq-list details {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 0.95rem;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 0.95rem 2.4rem 0.95rem 1.1rem;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 0.9rem;
  font-weight: 800;
  color: var(--teal-deep);
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0;
  padding: 0 1.1rem 1.05rem;
}

.signup {
  background: var(--cream);
  color: var(--ink);
}

.signup-card {
  margin-top: 0.25rem;
  padding: clamp(1.25rem, 3vw, 1.6rem);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
}

.notice {
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.9rem;
  background: var(--cream-dim);
  border-left: 4px solid var(--yellow);
  border-radius: 0.4rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

label span.lbl {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.field {
  flex: 1 1 14rem;
}

input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 0.7rem;
}

input[type="email"]:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.btn-submit {
  align-self: flex-end;
  margin-top: 0;
  background: var(--cream-dim);
  color: var(--ink);
  cursor: not-allowed;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-submit:hover,
.btn-submit:active {
  transform: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.privacy-inline {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--teal-shadow);
}

.site-footer {
  background: var(--teal-shadow);
  color: var(--cream);
  padding: 2rem var(--pad) 2.25rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-brand {
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
  font-size: 1.2rem !important;
  margin-bottom: 0.55rem !important;
}

.site-footer a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer a:hover {
  color: var(--cream);
}

.site-footer .legal {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--cream);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.reveal {
  animation: none;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }

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

@media (min-width: 900px) {

  .logo {
    width: 11rem;
    height: 11rem;
  }

  .logo-frame {
    border-radius: 1.85rem;
    padding: 7px;
  }

  .logo {
    border-radius: 1.45rem;
  }
}

@media (min-width: 720px) {
  .form-row {
    flex-wrap: nowrap;
  }

  .btn-submit {
    flex: 0 0 auto;
  }
}

@media (max-width: 799px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--teal-deep);
    border-bottom: 3px solid var(--ink);
    padding: 0.5rem var(--pad) 1rem;
  }

  .site-nav.is-open .site-menu {
    display: block;
  }

  .site-menu ul {
    flex-direction: column;
  }

  .site-menu a {
    display: block;
    padding: 0.75rem 0.6rem;
  }
}

@media (min-width: 800px) {
  .menu-toggle {
    display: none;
  }

  .site-menu {
    display: block !important;
  }
}

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

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

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: fade-up 0.55s ease forwards;
    animation-play-state: paused;
  }

  .reveal.is-visible {
    animation-play-state: running;
  }

  .steps .reveal:nth-child(2) {
    animation-delay: 0.08s;
  }

  .steps .reveal:nth-child(3) {
    animation-delay: 0.16s;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
