/* Ulala — palette C: tsuki pink & young bamboo */
:root {
  --bg: #F6EAE6;
  --panel: #EEDCD5;
  --card: #E6CFC7;
  --line: #DCC3BA;
  --ink: #2B1F1D;
  --muted: #5E4D49;
  --accent: #2F5E46;
  --on-accent: #FFFFFF;
  --head: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Noto Serif CJK JP', serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { opacity: .8; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--head); font-weight: 700; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo-seal { width: 44px; height: 44px; flex: none; border-radius: 6px; background: var(--accent); color: var(--bg); font-family: var(--head); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-name { font-family: var(--head); font-size: 28px; font-weight: 700; letter-spacing: .05em; line-height: 1.1; }
.logo-sub { font-family: var(--head); font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.site-nav a { text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; text-align: center; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-dark { background: var(--ink); color: var(--bg); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); }
.hero-lead { font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-photo { flex: 1 1 420px; min-width: 0; aspect-ratio: 5 / 5.2; background: var(--card); border-radius: 999px 999px 24px 24px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Promises */
.promises { background: var(--panel); }
.promises .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.promise-title { font-weight: 600; font-size: 15px; }
.promise-text { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

/* Shop */
.shop .wrap { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 32px; }
.section-head h2 { font-size: 36px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 28px; }
.item { display: flex; flex-direction: column; gap: 10px; }
.item-photo { aspect-ratio: 4 / 5; background: var(--card); border-radius: 16px; overflow: hidden; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.item h3 { font-size: 16px; font-weight: 600; }
.item-detail, .item-note { font-size: 13px; color: var(--muted); }
.item-price { font-size: 16px; font-weight: 600; }
.item .btn { margin-top: 4px; padding: 12px; font-size: 14px; }
.sold { margin-top: 4px; padding: 12px; text-align: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* About */
.about { background: var(--panel); }
.about .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.about-photo { flex: 1 1 320px; min-width: 0; aspect-ratio: 4 / 4.5; background: var(--card); border-radius: 24px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-text h2 { font-size: 36px; }
.about-text p { font-size: 17px; line-height: 1.7; color: var(--muted); }

/* Shipping & returns */
.policies .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.policies h2 { font-size: 28px; margin-bottom: 12px; }
.policies p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.policies p + p { margin-top: 10px; }

/* Newsletter */
.newsletter { border-top: 1px solid var(--line); }
.newsletter .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.newsletter-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.newsletter-text h2 { font-size: 32px; }
.newsletter form { flex: 1 1 360px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input[type=email] { flex: 1 1 220px; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); font-size: 15px; font-family: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-top: 32px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Legal page */
.legal .wrap { max-width: 860px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: 30px; margin-bottom: 8px; }
.legal .lead { color: var(--muted); margin-bottom: 32px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.legal th { width: 32%; font-weight: 600; }
.legal th span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* Small screens */

/* Categories, item type, grades, wear-or-unpick option */
.categories { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 32px; padding: 0; }
.categories li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.categories li.soon { color: var(--muted); border-style: dashed; }
.item-type { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.grade { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 11px; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.item-option { font-size: 13px; line-height: 1.5; padding: 10px 12px; background: var(--panel); border-radius: 12px; }
.item-usd { font-weight: 400; font-size: 13px; color: var(--muted); }
.grades { border-top: 1px solid var(--line); }
.grades .wrap { padding-top: 56px; padding-bottom: 56px; }
.grades h2 { font-size: 28px; margin-bottom: 20px; }
.grade-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.grade-list p { font-size: 14px; line-height: 1.6; }
.grade-title { font-weight: 600; font-size: 15px !important; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }

@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .promises .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 16px; font-size: 14px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 48px; gap: 32px; }
  .shop .wrap, .about .wrap, .policies .wrap { padding-top: 48px; padding-bottom: 48px; }
  .section-head h2, .about-text h2 { font-size: 28px; }
  .legal th, .legal td { display: block; width: 100%; padding: 8px 0; }
  .legal th { border-bottom: 0; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.item > .sold, .item > .btn { margin-top: auto; }

/* Seasonal cloth box, shipping rates, waitlist checkbox */
.item-ship { font-weight: 400; font-size: 12px; color: var(--muted); }
.clothbox { background: var(--panel); }
.clothbox .wrap { max-width: 760px; text-align: center; padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.clothbox h2 { font-size: 34px; }
.clothbox-lead { font-size: 17px; line-height: 1.7; color: var(--muted); }
.rates { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 12px; }
.rates th, .rates td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rates thead th { font-weight: 600; color: var(--ink); }
.rates tbody th { font-weight: 500; }
.check { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Wear or unpick, about subheading, grades lead and care */
.unpick { border-top: 1px solid var(--line); }
.unpick .wrap { max-width: 820px; padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.unpick h2 { font-size: 34px; }
.unpick-lead { font-size: 17px; line-height: 1.7; color: var(--muted); }
.unpick-list { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.unpick-list strong { color: var(--ink); }
.about-sub { font-family: var(--head); font-size: 22px; margin-top: 8px; }
.grades-lead { font-size: 15px; margin: -8px 0 20px; }
.care { font-size: 14px; margin-top: 20px; }
