@font-face {
  font-family: "Fredoka";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Fredoka-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Fredoka";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Fredoka-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Lato";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Lato-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Lato";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Lato-Bold.ttf") format("truetype");
}

:root {
  --background: #FBF8F3;
  --ink: #2E2A26;
  --ink-soft: #57574F;
  --accent: #C9734F;
  --sage: #8FA58C;
  --sage-dark: #56634F;
  --soft: #D7D2C7;
  --soft-dark: #A6A597;
  --cream: #F5EFE2;
  --blush: #F6E3DD;
  --sage-light: #E8EDDF;
  --lavender: #EBE7F2;
  --butter: #F8EFCF;
  --sky: #E4EEF0;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--ink);
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--soft);
  background-color: var(--background);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: auto;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Opening above the fold */
.opening {
  padding: 14px 0 32px;
  border-bottom: 1px solid var(--soft);
  background:
    radial-gradient(circle at 8% 12%, var(--sage-light) 0%, rgba(232, 237, 223, 0) 42%),
    radial-gradient(circle at 92% 88%, var(--blush) 0%, rgba(246, 227, 221, 0) 40%),
    var(--background);
}

.opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.opening-copy {
  min-width: 0;
}

.opening-heading h1 {
  font-size: 1.9rem;
  line-height: 1.06;
}

.opening-sub {
  margin-top: 4px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  line-height: 1.32;
  color: var(--ink-soft);
}

.offer-panel {
  background-color: var(--cream);
  border: 1px solid var(--soft-dark);
  border-top: 4px solid var(--accent);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(46, 42, 38, 0.05), 0 12px 24px rgba(46, 42, 38, 0.06);
}

.offer-header {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--soft);
}

.offer-name {
  font-size: 1.32rem;
  line-height: 1.12;
}

.offer-line {
  margin-top: 2px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--sage-dark);
}

.offer-description {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.93rem;
  line-height: 1.34;
  color: var(--ink);
}

.offer-invite {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.34;
  color: var(--ink);
}

.hp-field {
  display: none;
}

.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--sage-dark);
  border-radius: 10px;
  background-color: #FFFFFF;
  color: var(--ink);
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.email-input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--ink);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background-color: var(--ink);
  color: var(--background);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--accent);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.submit-button:hover {
  background-color: var(--sage-dark);
  border-color: var(--ink);
  color: #FFFFFF;
}

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

.submit-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.small-print {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.opening-figure {
  min-width: 0;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.hero-picture {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  border: 1px solid var(--soft-dark);
  box-shadow: 0 4px 10px rgba(46, 42, 38, 0.08), 0 18px 36px rgba(46, 42, 38, 0.12);
  background-color: var(--background);
}

/* Planners Grid Section */
.planners-section {
  padding: 44px 0 52px;
}

.section-heading {
  font-size: 1.9rem;
  line-height: 1.1;
  margin-bottom: 24px;
  text-align: center;
}

.section-note {
  margin: -12px 0 24px;
  text-align: center;
  color: var(--sage-dark);
  font-weight: 700;
}

.planners-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.planner-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--cream);
  border: 1px solid var(--soft-dark);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(46, 42, 38, 0.05), 0 10px 24px rgba(46, 42, 38, 0.06);
}

.planner-card-featured {
  background-color: var(--sage-light);
  border-color: var(--sage-dark);
}

.card-picture-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--soft);
  background-color: var(--background);
}

.card-picture {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 8px 6px;
}

.card-name {
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ink);
}

.card-plain {
  margin-top: 4px;
  font-size: 0.98rem;
  line-height: 1.38;
  color: var(--ink-soft);
}

.inside-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background-color: var(--butter);
  color: var(--ink);
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--ink);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.inside-button:hover {
  background-color: var(--blush);
}

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

.inside-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Second sign-up block */
.closing-signup {
  padding: 8px 0 56px;
}

.closing-panel {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--blush);
  border: 1px solid var(--soft-dark);
  border-top: 4px solid var(--accent);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 2px 6px rgba(46, 42, 38, 0.05), 0 12px 28px rgba(46, 42, 38, 0.06);
}

.closing-panel h2 {
  font-size: 1.65rem;
  line-height: 1.12;
}

.closing-line {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.38;
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--soft);
  background-color: var(--cream);
  padding: 24px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}

.footer-links a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--sage-dark);
}

.footer-links a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Responsive breakpoints */
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .form-row {
    flex-direction: row;
    align-items: stretch;
  }

  .email-input {
    flex: 1 1 auto;
    height: 48px;
  }

  .submit-button {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 24px;
    white-space: nowrap;
  }

  .planners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .closing-panel {
    padding: 32px 36px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 960px) {
  .container {
    padding: 0 32px;
  }

  .site-header {
    padding: 14px 0;
  }

  .brand-mark {
    width: 48px;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .opening {
    padding: 28px 0 44px;
  }

  .opening-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 44px;
  }

  .opening-heading h1 {
    font-size: 2.75rem;
  }

  .opening-sub {
    font-size: 1.15rem;
    margin-top: 6px;
    margin-bottom: 18px;
  }

  .offer-panel {
    padding: 22px 26px;
    border-radius: 22px;
  }

  .offer-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .offer-name {
    font-size: 1.55rem;
  }

  .offer-line {
    font-size: 1rem;
  }

  .offer-description {
    font-size: 1rem;
    gap: 4px;
  }

  .offer-invite {
    margin-top: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
  }

  .opening-figure {
    max-width: 560px;
  }

  .planners-section {
    padding: 60px 0 68px;
  }

  .section-heading {
    font-size: 2.35rem;
    margin-bottom: 32px;
  }

  .planners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .planner-card {
    padding: 14px;
    border-radius: 22px;
  }

  .card-body {
    padding: 16px 10px 8px;
  }

  .card-name {
    font-size: 1.45rem;
  }

  .card-plain {
    font-size: 1.02rem;
  }

  .closing-signup {
    padding: 12px 0 72px;
  }

  .closing-panel {
    padding: 36px 44px;
  }

  .closing-panel h2 {
    font-size: 2rem;
  }
}

/* Plain text pages */
.text-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 64px;
  color: var(--ink);
}

/* Product page */
.product-page {
  display: grid;
  grid-template-areas: "heading" "gallery" "copy";
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 64px;
}

.product-heading {
  grid-area: heading;
  min-width: 0;
}

.product-heading h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.product-plain {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.product-purchase {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--soft-dark);
  border-radius: 18px;
  background: var(--cream);
}

.product-price {
  margin-bottom: 14px;
  font-weight: 700;
}

.checkout-consent {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.checkout-consent a {
  display: block;
  margin-top: 6px;
}

.product-soon {
  color: var(--sage-dark);
  font-weight: 700;
}

.product-gallery {
  grid-area: gallery;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.product-gallery img {
  width: 100%;
  border: 1px solid var(--soft);
  border-radius: 10px;
  background: var(--cream);
}

.product-gallery img:first-child {
  grid-column: 1 / -1;
  border-radius: 20px;
}

.product-copy {
  grid-area: copy;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-copy h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.product-copy ul {
  margin: 0;
  padding-left: 22px;
}

.product-copy li + li {
  margin-top: 8px;
}

.product-credit {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (min-width: 960px) {
  .product-page {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "gallery heading" "gallery copy";
    gap: 28px 44px;
    padding-top: 48px;
  }
}
