@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  font-family: 'Inter', sans-serif;

  /* Kundu palette */
  --soil: #211712;          /* volcanic soil, near-black */
  --soil-soft: #2e2119;
  --forest: #1b2a22;         /* deep forest, used sparingly */
  --parchment: #f7efe0;      /* raw parchment cream */
  --parchment-deep: #efe3cb;
  --paper: #fffbf2;
  --bird: #b33a1e;           /* bird-of-paradise red-orange */
  --bird-deep: #8c2c15;
  --fern: #4b6b3a;           /* highland fern green */
  --fern-deep: #364f29;
  --cherry-gold: #e8a33d;
  --ink: #211712;
  --ink-muted: #62584d;
  --line: rgba(33, 23, 18, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(circle at 8% 6%, rgba(179, 58, 30, 0.06), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(75, 107, 58, 0.07), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(232, 163, 61, 0.05), transparent 36%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--bird-deep);
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--cherry-gold);
}

h1, h2, h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

em {
  font-style: italic;
  color: var(--bird);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  background: var(--bird);
  color: var(--parchment);
  box-shadow: 0 10px 24px rgba(179, 58, 30, 0.28);
}

.button-primary:hover {
  background: var(--bird-deep);
  box-shadow: 0 14px 30px rgba(179, 58, 30, 0.34);
}

.button-outline {
  background: transparent;
  border-color: rgba(33, 23, 18, 0.22);
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--ink);
  background: rgba(33, 23, 18, 0.04);
}

.button-ghost {
  background: transparent;
  border-color: rgba(247, 239, 224, 0.4);
  color: var(--parchment);
  padding: 10px 20px;
  font-size: 0.88rem;
}

.button-ghost:hover {
  background: rgba(247, 239, 224, 0.12);
}

.hidden {
  display: none !important;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--bird-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

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

.brand-drum {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--parchment);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.brand-drum-small {
  stroke: var(--parchment);
  width: 26px;
  height: 26px;
}

.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--parchment);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: var(--parchment);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.88;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cherry-gold);
  transition: width 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  flex-shrink: 0;
}

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

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--parchment);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('https://images.unsplash.com/photo-1626979326069-3bcf322aa242?fm=jpg&q=80&w=1900&auto=format&fit=crop');
  background-size: cover;
  background-position: center 38%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 18, 12, 0.45) 0%, rgba(28, 18, 12, 0.42) 45%, rgba(20, 13, 9, 0.86) 100%),
    linear-gradient(95deg, rgba(20, 13, 9, 0.55) 0%, rgba(20, 13, 9, 0.1) 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 160px 40px 120px;
}

.hero-kicker {
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cherry-gold);
}

.hero-title {
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1.04;
  color: var(--parchment);
  max-width: 820px;
}

.hero-title em {
  color: var(--cherry-gold);
  font-style: italic;
}

.hero-sub {
  margin: 28px 0 0;
  max-width: 560px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(247, 239, 224, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.hero-beat {
  position: absolute;
  bottom: 36px;
  left: 40px;
  display: flex;
  gap: 8px;
  z-index: 1;
}

.hero-beat span {
  width: 6px;
  height: 22px;
  background: var(--cherry-gold);
  border-radius: 3px;
  opacity: 0.85;
  animation: beat 1.8s ease-in-out infinite;
}

.hero-beat span:nth-child(1) { animation-delay: 0s; height: 14px; }
.hero-beat span:nth-child(2) { animation-delay: 0.15s; height: 26px; }
.hero-beat span:nth-child(3) { animation-delay: 0.3s; height: 18px; }
.hero-beat span:nth-child(4) { animation-delay: 0.45s; height: 30px; }
.hero-beat span:nth-child(5) { animation-delay: 0.6s; height: 16px; }

@keyframes beat {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

/* ---------- Trust strip ---------- */

.strip {
  background: var(--soil);
  color: var(--parchment);
}

.strip-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  border-left: 1px solid rgba(247, 239, 224, 0.14);
  padding-left: 24px;
}

.strip-item:first-child {
  border-left: none;
  padding-left: 0;
}

.strip-num {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cherry-gold);
}

.strip-label {
  font-size: 0.82rem;
  color: rgba(247, 239, 224, 0.7);
  letter-spacing: 0.02em;
}

/* ---------- Section base ---------- */

.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 110px 40px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  margin: 4px 0 16px;
}

.section-sub {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Origin section ---------- */

.origin-section {
  position: relative;
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.origin-copy h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  margin-bottom: 22px;
  max-width: 480px;
}

.origin-copy p {
  color: var(--ink-muted);
  line-height: 1.78;
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 0 18px;
}

.origin-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(33, 23, 18, 0.18);
}

/* ---------- Coffees section ---------- */

.coffees-section {
  background: var(--paper);
  border-radius: 0;
}

.coffee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.coffee-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.coffee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(33, 23, 18, 0.1);
}

.coffee-card-featured {
  border-color: var(--bird);
  box-shadow: 0 0 0 1px var(--bird);
}

.coffee-photo {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.coffee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coffee-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(33, 23, 18, 0.78);
  color: var(--parchment);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.coffee-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.coffee-body h3 {
  font-size: 1.32rem;
}

.coffee-notes {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fern-deep);
  text-transform: uppercase;
}

.coffee-desc {
  margin: 4px 0 12px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.coffee-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.coffee-price {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.coffee-price small {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ---------- Story section ---------- */

.story-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(33, 23, 18, 0.16);
}

.story-copy h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  margin-bottom: 22px;
  max-width: 480px;
}

.story-copy p {
  color: var(--ink-muted);
  line-height: 1.78;
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 0 18px;
}

/* ---------- Contact section ---------- */

.contact-section {
  padding-bottom: 130px;
}

.contact-panel {
  background-color: var(--soil);
  background-image:
    repeating-radial-gradient(
      circle at 80% 25%,
      transparent 0,
      transparent 32px,
      rgba(247, 239, 224, 0.025) 33px,
      rgba(247, 239, 224, 0.025) 34px
    );
  color: var(--parchment);
  border-radius: 10px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.22), transparent 70%);
}

.contact-copy .eyebrow {
  color: var(--cherry-gold);
}

.contact-copy h2 {
  color: var(--parchment);
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  margin-bottom: 16px;
}

.contact-copy p {
  color: rgba(247, 239, 224, 0.78);
  line-height: 1.72;
  font-size: 1rem;
  margin: 0;
  max-width: 440px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}

.contact-details p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.02rem;
  color: rgba(247, 239, 224, 0.92);
}

.contact-details span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--cherry-gold);
}

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

.site-footer {
  background: var(--forest);
  color: var(--parchment);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-note {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(247, 239, 224, 0.65);
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 13, 9, 0.62);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 12px;
  padding: 38px;
  box-shadow: 0 40px 110px rgba(20, 13, 9, 0.3);
  position: relative;
  border: 1px solid var(--line);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--parchment-deep);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--line);
}

.modal-header {
  margin-bottom: 26px;
}

.modal-header h2 {
  font-size: 1.5rem;
  margin: 6px 0 0;
}

.checkout-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid label.full-width {
  grid-column: 1 / -1;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--bird);
}

.form-grid textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.order-confirmation {
  border-radius: 10px;
  background: rgba(179, 58, 30, 0.06);
  padding: 24px;
  border: 1px solid rgba(179, 58, 30, 0.16);
}

.confirmation-copy {
  margin: 0 0 18px;
  font-weight: 500;
  color: var(--ink);
}

.transfer-details p {
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.transfer-details p strong {
  color: var(--ink);
  font-weight: 600;
}

.confirmation-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bird);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .origin-grid,
  .story-section {
    grid-template-columns: 1fr;
  }

  .origin-photo,
  .story-photo {
    order: -1;
  }

  .origin-photo img,
  .story-photo img {
    height: 340px;
  }

  .coffee-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strip-inner {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .strip-item:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 20px 24px;
  }

  .site-nav {
    display: none;
  }

  .hero-inner {
    padding: 140px 24px 90px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-beat {
    left: 24px;
  }

  .section {
    padding: 80px 24px;
  }

  .coffee-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .contact-panel {
    padding: 36px 26px;
  }

  .footer-inner {
    padding: 30px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
