/* Sōmu Skincare — built from the Figma file
   "Sōmu Skincare — Landing Page & Components"
   White field. One red mark. Warmth carried by natural materials.
   Tokens: Shiro #FFFFFF · Beni #B5243E · Sumi #2B2B2B
           Ai #264348 · Uguisu #6C6024 · Kinari #F5F0E8
   Type: Cormorant Garamond (display) · Inter (everything else)
         · Noto Sans JP (Japanese glyphs) */

:root {
  --shiro: #ffffff;
  --beni: #b5243e;
  --sumi: #2b2b2b;
  --ai: #264348;
  --uguisu: #6c6024;
  --kinari: #f5f0e8;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --jp: "Noto Sans JP", "Inter", sans-serif;
  --gutter: 64px;
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--sumi);
  background: var(--shiro);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--beni);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  background: var(--beni); color: #fff; padding: 8px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
}
.skip-link:focus { top: 8px; }

/* Type helpers */
.kicker {
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  color: var(--beni); text-transform: uppercase;
}
.kicker-centre { text-align: center; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--sumi); }

/* Buttons — square corners, as in Figma */
.button {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-align: center;
  padding: 16px 26px; border: 0; cursor: pointer;
  background: none; font-family: var(--sans);
}
.button-primary { background: var(--beni); color: #fff; }
.button-primary:hover { background: #9c1f36; }
.button-secondary { color: var(--sumi); border-bottom: 1px solid var(--sumi); padding-left: 26px; padding-right: 26px; }
.button-secondary:hover { color: var(--beni); border-color: var(--beni); }
.button-centre { display: block; width: 190px; margin: 0 auto; }
.text-link {
  font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--sumi);
}
.text-link:hover { color: var(--beni); }

/* Announcement bar */
.announcement {
  background: var(--kinari);
  min-height: 32px; padding: 8px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.announcement p { font-size: 10px; line-height: 16px; }
.announcement-spacer, .announcement-region { width: 180px; }
.announcement-region { text-align: right; }

/* Header */
.site-header {
  max-width: var(--max); margin: 0 auto; height: 88px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a, .cart-button {
  font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--sumi);
  padding: 4px 8px; background: none; border: 0; cursor: pointer; font-family: var(--sans);
}
.nav a:hover, .cart-button:hover { color: var(--beni); }
.wordmark img { width: 103px; height: 69px; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 610px 830px; min-height: 560px;
}
.hero-copy { position: relative; padding: 55px 0 0 150px; }
.hero-vertical {
  position: absolute; left: 62px; top: 70px;
  writing-mode: vertical-rl; font-family: var(--jp);
  font-size: 13px; line-height: 23px; letter-spacing: .1em;
}
.hero-dot {
  position: absolute; left: 66px; top: 320px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--beni);
}
.hero h1 {
  margin-top: 28px;
  font-size: 58px; line-height: 58px;
}
.hero-body { margin-top: 24px; font-size: 14px; line-height: 23px; max-width: 355px; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 26px; }
.hero-scene img { width: 830px; height: 560px; object-fit: cover; }

/* Collection */
.collection { max-width: var(--max); margin: 0 auto; padding: 34px var(--gutter) 48px; text-align: center; }
.collection h2 { font-size: 38px; line-height: 46px; margin: 10px 0 40px; }
.product-grid {
  display: grid; grid-template-columns: repeat(6, 190px);
  gap: 16px; justify-content: center; margin-bottom: 40px;
}
.product-card {
  border: 1px solid var(--kinari); background: var(--shiro);
  display: flex; flex-direction: column; text-align: center;
  position: relative; padding-bottom: 4px;
}
.product-card img { width: 190px; height: 210px; object-fit: cover; }
.product-copy { padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-copy h3 { font-size: 20px; font-weight: 500; line-height: 22px; min-height: 44px; }
.product-japanese { font-family: var(--jp); font-size: 10px; line-height: 14px; }
.product-ingredients { font-size: 9px; line-height: 15px; letter-spacing: .05em; }
.product-price { font-size: 11px; font-weight: 600; }
.product-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }

/* Ritual */
.ritual {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 580px 860px; min-height: 430px;
}
.ritual-copy { background: var(--kinari); padding: 36px 52px 32px 72px; }
.ritual-copy h2 { font-size: 34px; line-height: 40px; margin: 10px 0 22px; }
.ritual-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.ritual-steps li {
  background: var(--shiro); min-height: 52px; padding: 8px 18px;
  display: grid; grid-template-columns: 24px 130px 1fr; align-items: center; gap: 18px;
}
.ritual-number { font-size: 11px; font-weight: 600; color: var(--beni); }
.ritual-title { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 22px; }
.ritual-desc { font-size: 11px; line-height: 16px; }
.ritual-scene img { width: 860px; height: 430px; object-fit: cover; }

/* Botanicals */
.botanicals {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 360px 1fr; min-height: 390px;
}
.botanicals-intro { padding: 48px 24px 0 64px; }
.botanicals-intro h2 { font-size: 34px; line-height: 36px; margin: 10px 0 22px; max-width: 255px; }
.botanical-grid {
  background: var(--kinari);
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.botanical-item {
  padding: 24px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  border-left: 1px solid var(--shiro);
}
.botanical-item:first-child { border-left: 0; }
.botanical-item img { width: 88px; height: 76px; object-fit: contain; }
.botanical-item h3 { font-size: 17px; font-weight: 500; line-height: 19px; min-height: 40px; }
.botanical-item p { font-size: 10px; line-height: 15px; }

/* Footer */
.site-footer { max-width: var(--max); margin: 0 auto; }
.footer-main {
  background: var(--kinari);
  padding: 52px var(--gutter) 38px;
  display: grid; grid-template-columns: 220px 1fr 1fr 1fr 360px; gap: 32px;
}
.footer-wordmark { font-family: var(--serif); font-size: 46px; line-height: 52px; color: var(--beni); }
.footer-tagline { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 21px; margin-top: 8px; }
.footer-group { display: flex; flex-direction: column; gap: 10px; }
.footer-group h3, .footer-newsletter h3 {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .1em;
}
.footer-group a { font-size: 11px; line-height: 16px; }
.footer-group a:hover { color: var(--beni); }
.footer-newsletter p { font-size: 11px; line-height: 18px; margin: 10px 0; }
.footer-newsletter form { display: flex; }
.footer-newsletter input {
  flex: 1; height: 48px; border: 1px solid var(--kinari); background: var(--shiro);
  padding: 14px 16px; font-family: var(--sans); font-size: 11px; color: var(--sumi);
  min-width: 0;
}
.footer-newsletter input::placeholder { color: #8a8378; }
.footer-newsletter button {
  width: 48px; height: 48px; flex: none;
  background: var(--shiro); border: 1px solid var(--kinari); border-left: 0;
  font-size: 18px; cursor: pointer; color: var(--sumi);
}
.footer-newsletter button:hover { color: var(--beni); }
.newsletter-note { font-size: 10px !important; color: var(--beni); min-height: 15px; margin: 6px 0 0 !important; }
.footer-social { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; }
.footer-social span { font-size: 10px; }
.footer-legal {
  padding: 22px var(--gutter); min-height: 87px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--kinari);
}
.footer-legal p { font-size: 9px; line-height: 14px; }
.footer-legal a { margin-left: 24px; }
.footer-legal a:first-child { margin-left: 0; }
.footer-legal a:hover { color: var(--beni); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(80px);
  background: var(--sumi); color: #fff; font-size: 12px; line-height: 18px;
  padding: 12px 20px; opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; z-index: 30; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive — Figma is desktop-only (1440px); these are sensible fallbacks */
@media (max-width: 1240px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-left: 96px; }
  .hero-vertical { left: 40px; }
  .hero-dot { left: 44px; }
  .ritual { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, 190px); }
  .botanical-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --gutter: 24px; }
  .site-header { flex-wrap: wrap; height: auto; padding: 16px var(--gutter); justify-content: center; }
  .wordmark { order: -1; width: 100%; display: flex; justify-content: center; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .announcement-region { display: none; }
  .announcement { justify-content: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 40px var(--gutter) 48px 72px; }
  .hero-vertical { left: 24px; top: 40px; }
  .hero-dot { left: 28px; top: 290px; }
  .hero h1 { font-size: 44px; line-height: 46px; }
  .hero-scene img { width: 100%; height: auto; }
  .product-grid { grid-template-columns: repeat(2, 190px); }
  .ritual { grid-template-columns: 1fr; }
  .ritual-copy { padding: 32px var(--gutter); }
  .ritual-scene img { width: 100%; height: auto; }
  .botanicals { grid-template-columns: 1fr; }
  .botanicals-intro { padding: 32px var(--gutter); }
  .botanical-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; padding: 40px var(--gutter) 32px; }
  .footer-legal { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 190px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
