/* Malmalko full site — sample v2. Same tokens as the coming soon page. */
:root {
  --ivory: #f7f2ea;
  --oat: #efe7d8;
  --terracotta: #c0765a;
  --terracotta-dark: #a85f45;
  --sage: #8a9b7e;
  --charcoal: #2e2a26;
  --muted: #6f675e;
  --line: #ddd2c0;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--ivory);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(192, 118, 90, 0.07), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(138, 155, 126, 0.09), transparent 60%);
  color: var(--charcoal);
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ---------- nav ---------- */
.site-nav {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 40px; height: auto; }

.brand-name {
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--terracotta);
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }

.nav-cta {
  color: #fff !important;
  background: var(--terracotta);
  padding: 10px 18px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--terracotta-dark); }

/* ---------- layout ---------- */
.wrap {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 14px;
  font-weight: 400;
}

h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(44px, 6vw, 64px); }
h2 { font-size: clamp(32px, 4vw, 44px); }

.lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 18px 0 0;
}

.lede em { color: var(--terracotta-dark); font-style: italic; }

.thread {
  width: 120px;
  height: 6px;
  margin: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0 14px,
    var(--sage) 14px 28px,
    var(--oat) 28px 34px
  );
  border-radius: 3px;
  opacity: 0.85;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--terracotta);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: var(--terracotta-dark); }
.btn:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid #d8ccb8;
}

.btn-ghost:hover { background: #fff; border-color: var(--terracotta); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 72px;
}

.hero-copy .lede { max-width: 460px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero figure { margin: 0; }

.hero figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ---------- story ---------- */
.story {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}

.story p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 16px;
}

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

.story p strong { color: var(--charcoal); font-weight: 500; }

/* ---------- featured product ---------- */
.featured {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 36px;
}

.featured-grid figure { margin: 0; }

.featured-grid figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.featured-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--terracotta);
  margin: 10px 0 4px;
}

.featured-sub {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 18px;
}

.detail-list {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
}

.detail-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.detail-list li:last-child { border-bottom: 1px solid var(--line); }

.detail-list strong { font-weight: 500; display: block; font-size: 16px; }
.detail-list span { color: var(--muted); }

.text-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--terracotta-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
}

/* ---------- values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 56px 0 72px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.values h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
}

.values p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- shop grid ---------- */
.page-head { padding: 40px 0 44px; }

.page-head .lede { max-width: 560px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 72px;
}

.product-card { text-decoration: none; }

.product-card figure { margin: 0; overflow: hidden; border-radius: 4px; }

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover img { transform: scale(1.03); }

.product-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  margin: 16px 0 4px;
}

.product-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 10px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  padding: 5px 12px;
}

.coming-soon-card figure {
  aspect-ratio: 4 / 5;
  background: var(--oat);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.coming-soon-card .thread { width: 80px; }

.coming-soon-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  margin: 16px 0 4px;
}

.coming-soon-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ---------- product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 40px 0 72px;
  align-items: start;
}

.product-gallery figure { margin: 0 0 20px; }

.product-gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-info h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1.05;
  margin: 8px 0 4px;
}

.product-info .lede { margin-top: 20px; }

.care {
  margin: 28px 0 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.care strong { color: var(--charcoal); font-weight: 500; }

.product-waitlist { margin-top: 32px; }

.back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover { color: var(--charcoal); }

/* ---------- waitlist band ---------- */
.waitlist-band {
  border-top: 1px solid var(--line);
  padding: 64px 0 72px;
  text-align: center;
}

.waitlist-band .waitlist-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 8px;
}

.waitlist-band p.sub { color: var(--muted); font-size: 16px; margin: 0 0 22px; }

.waitlist { width: 100%; max-width: 460px; margin: 0 auto; }

#waitlist-form {
  display: flex;
  gap: 8px;
}

#waitlist-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#waitlist-form input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 118, 90, 0.15);
}

#waitlist-form button {
  padding: 13px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--terracotta);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

#waitlist-form button:hover { background: var(--terracotta-dark); }
#waitlist-form button:active { transform: scale(0.97); }

.form-message {
  min-height: 20px;
  font-size: 14px;
  margin: 12px 0 0;
  color: var(--muted);
}

.form-message.success { color: var(--sage); font-weight: 400; }
.form-message.error { color: var(--terracotta-dark); }

.fineprint { font-size: 12px; color: #5a534b; margin: 4px 0 0; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 32px 48px;
  text-align: center;
}

footer .foot-mark { width: 44px; margin: 0 auto 14px; }

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--charcoal); }

footer p {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
  opacity: 0.8;
}

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

@media (max-width: 820px) {
  .hero, .story, .featured-grid, .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .values { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 56px; }
  .shop-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .site-nav { padding: 16px 20px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 28px 0 56px; }
  #waitlist-form { flex-direction: column; }
  #waitlist-form button { width: 100%; }
}
