/* RAVOSO — modest streetwear, Japan.
   Palette and gold are taken from the brand's own logo; garment-native devices
   (size tags, care-label footer, katakana rail) carry the personality. */

:root {
  --ink: #0b0b0c;
  --ink-raise: #141417;
  --ink-line: #26262c;
  --bone: #efebe4;
  --smoke: #8c8c93;
  --gold: #e8b22b;
  --gold-deep: #8a6410;

  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --rule: 1px solid var(--ink-line);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Small caps utility label — used for eyebrows, tags, meta */
.tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ---------- header ---------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem var(--gut);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.masthead[data-solid="true"] {
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--ink-line);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  line-height: 1;
  margin-right: auto;
}

.wordmark span { color: var(--gold); }

.mainnav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mainnav a { color: rgba(239, 235, 228, 0.78); transition: color 0.2s ease; }
.mainnav a:hover { color: var(--gold); }

.cartlink {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--rule);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cartlink:hover { border-color: var(--gold); color: var(--gold); }
.cartlink [data-count]:not(:empty) { color: var(--gold); }

@media (max-width: 760px) {
  .mainnav { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gut) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

/* Two scrims: one keeps the fixed header legible, one holds the type side. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.88) 0%, rgba(11, 11, 12, 0.42) 46%, rgba(11, 11, 12, 0.05) 78%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.85) 0%, rgba(11, 11, 12, 0.1) 30%, rgba(11, 11, 12, 0.96) 92%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

/* Vertical katakana rail — the brand name as it is set in Japan */
.rail {
  position: absolute;
  left: calc(var(--gut) * -1 + 0.35rem);
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  color: var(--smoke);
}

.rail::after {
  content: "";
  width: 1px;
  height: clamp(3rem, 9vw, 6rem);
  background: linear-gradient(180deg, var(--gold), transparent);
}

@media (max-width: 900px) { .rail { display: none; } }

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.4vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 0.75rem 0 0;
  max-width: 15ch;
  text-transform: uppercase;
}

.hero__title em {
  font-style: normal;
  color: var(--gold);
}

/* Over photography the muted tag colour loses too much contrast. */
.hero .tag,
.editorial .tag { color: rgba(239, 235, 228, 0.82); }

.hero__lede {
  max-width: 38ch;
  margin: 1.5rem 0 0;
  color: #cfcbc4;
  font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--gold { background: var(--gold); color: #17130a; }
.btn--gold:hover { background: #f4c352; }

.btn--ghost { border-color: rgba(239, 235, 228, 0.35); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }

.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- section furniture ---------- */

.band { padding-block: clamp(4rem, 10vw, 7.5rem); }

.band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  border-bottom: var(--rule);
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.band__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- product grid ---------- */

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.card { position: relative; display: block; }

.card__frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-raise);
  aspect-ratio: 4 / 5;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card:hover .card__img { transform: scale(1.045); }

.card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  background: var(--gold);
  color: #17130a;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
}

/* Size tags ride in on hover — the garment tag, not a generic overlay */
.card__sizes {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.85rem;
  background: linear-gradient(0deg, rgba(11, 11, 12, 0.9), transparent);
  transform: translateY(101%);
  transition: transform 0.35s ease;
}

.card:hover .card__sizes,
.card:focus-within .card__sizes { transform: translateY(0); }

.card__sizes span {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--bone);
  border: 1px solid rgba(239, 235, 228, 0.4);
  padding: 0.2rem 0.45rem;
}

.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.card__name {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.card__price { font-size: 0.875rem; color: var(--gold); white-space: nowrap; }
.card__cat { margin-top: 0.15rem; }

/* ---------- editorial statement ---------- */

.editorial {
  position: relative;
  min-height: clamp(24rem, 60vh, 38rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gut);
  overflow: hidden;
}

.editorial__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.72);
}

.editorial__inner { position: relative; z-index: 2; max-width: 46rem; }

.editorial__quote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0.9rem 0 0;
}

.editorial__body { margin: 1.25rem auto 0; max-width: 46ch; color: #cfcbc4; }

/* ---------- product detail ---------- */

.pdp {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  padding-block: clamp(6rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem);
}

@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .pdp__buy { position: sticky; top: 6rem; }
}

.pdp__art { background: var(--ink-raise); aspect-ratio: 4 / 5; }
.pdp__art img { width: 100%; height: 100%; object-fit: cover; }

.pdp__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0.6rem 0 0;
}

.pdp__price {
  font-size: 1.375rem;
  color: var(--gold);
  margin: 1rem 0 0;
}

.pdp__desc {
  color: #c6c2bb;
  font-size: 0.9375rem;
  margin: 1.25rem 0 0;
  padding-bottom: 1.75rem;
  border-bottom: var(--rule);
}

.picker { margin-top: 1.75rem; }

.picker__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.picker__note { font-size: 0.75rem; color: var(--smoke); }

/* Size chips styled as sewn-in garment tags */
.sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.size {
  position: relative;
  min-width: 3.25rem;
  padding: 0.7rem 0.9rem;
  background: transparent;
  border: var(--rule);
  color: var(--bone);
  font-family: var(--body);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.size:hover { border-color: var(--smoke); }

.size[aria-pressed="true"] {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
  font-weight: 700;
}

.buyrow { display: flex; gap: 0.6rem; margin-top: 1.5rem; align-items: stretch; }

.qty {
  display: inline-flex;
  align-items: center;
  border: var(--rule);
}

.qty button {
  width: 2.75rem;
  height: 100%;
  background: none;
  border: 0;
  color: var(--bone);
  font-size: 1.1rem;
  cursor: pointer;
}

.qty button:hover { color: var(--gold); }
.qty output { min-width: 2.25rem; text-align: center; font-size: 0.9375rem; }

.formnote {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--smoke);
  min-height: 1.1rem;
}

.formnote[data-state="warn"] { color: var(--gold); }

/* ---------- cart ---------- */

.cartpage { padding-block: clamp(6rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem); }

.line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: var(--rule);
}

.line__img { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-raise); }
.line__name { font-size: 0.9375rem; font-weight: 500; margin: 0; }
.line__sub { font-size: 0.75rem; color: var(--smoke); margin: 0.25rem 0 0.6rem; }

.line__ctl { display: flex; align-items: center; gap: 0.75rem; }

.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--smoke);
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.linkbtn:hover { color: var(--gold); }
.line__price { font-size: 0.9375rem; color: var(--gold); white-space: nowrap; }

.summary {
  margin-top: 2rem;
  margin-left: auto;
  max-width: 22rem;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: var(--rule);
  font-size: 1.125rem;
}

.summary__row strong { color: var(--gold); }

.empty { padding-block: clamp(3rem, 10vw, 6rem); text-align: center; }
.empty p { color: var(--smoke); margin-bottom: 1.5rem; }

/* ---------- care-label footer ---------- */

.carelabel {
  margin: clamp(2rem, 6vw, 4rem) var(--gut) clamp(2rem, 5vw, 3rem);
  border: var(--rule);
  background: var(--ink-raise);
}

.carelabel__grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

/* Two up on tablets, four across on desktop. Rules are drawn per-cell so the
   grid still reads as a label when it wraps. */
@media (min-width: 720px) {
  .carelabel__grid { grid-template-columns: repeat(2, 1fr); }
  .carelabel__cell:nth-child(even) { border-left: var(--rule); }
  .carelabel__cell:nth-child(n + 3) { border-top: var(--rule); }
}

@media (min-width: 1040px) {
  .carelabel__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .carelabel__cell + .carelabel__cell { border-left: var(--rule); }
  .carelabel__cell:nth-child(n + 3) { border-top: 0; }
}

.carelabel__cell { padding: clamp(1.5rem, 3vw, 2.25rem); }

@media (max-width: 719px) {
  .carelabel__cell + .carelabel__cell { border-top: var(--rule); }
}

.carelabel__mark {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  line-height: 1;
}

.carelabel__mark span { color: var(--gold); }
.carelabel__jp { font-size: 0.8125rem; letter-spacing: 0.3em; color: var(--smoke); margin-top: 0.5rem; }

.carelabel__list { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.carelabel__list li { font-size: 0.8125rem; color: #b4b0a9; padding: 0.28rem 0; }
.carelabel__list a { color: #b4b0a9; }
.carelabel__list a:hover { color: var(--gold); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding: 1.1rem clamp(1.5rem, 3vw, 2.25rem);
  border-top: var(--rule);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ---------- notice pages ---------- */

.notice { padding-block: clamp(8rem, 18vw, 12rem); text-align: center; }

.notice__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.75rem 0 0.75rem;
}

.notice p { color: var(--smoke); margin: 0 auto 2rem; max-width: 38ch; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card__sizes { transform: translateY(0); }
}

/* ---------- editorial / prose pages ---------- */

.page { padding-block: clamp(6.5rem, 12vw, 9rem) clamp(3rem, 8vw, 5rem); }

.page__lede {
  max-width: 52ch;
  margin: 1.25rem 0 0;
  color: #c6c2bb;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.prose { max-width: 68ch; margin-top: clamp(2rem, 5vw, 3.25rem); }

.prose section + section { margin-top: clamp(2rem, 4vw, 2.75rem); }

.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  color: var(--gold);
}

.prose p {
  margin: 0 0 1rem;
  color: #c6c2bb;
  font-size: 0.9375rem;
  line-height: 1.75;
}

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

/* ---------- faq ---------- */

.faq { max-width: 68ch; margin-top: clamp(2rem, 5vw, 3rem); }

.faq details {
  border-bottom: var(--rule);
  padding: 1.15rem 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--gold); }

.faq p {
  margin: 0.85rem 0 0;
  color: #c6c2bb;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 60ch;
}

/* ---------- journal ---------- */

.posts { display: grid; gap: 0; margin-top: clamp(2rem, 5vw, 3rem); }

.post-link {
  display: grid;
  gap: 0.5rem 2rem;
  grid-template-columns: 1fr;
  padding: 1.6rem 0;
  border-bottom: var(--rule);
  transition: opacity 0.2s ease;
}

@media (min-width: 760px) {
  .post-link { grid-template-columns: 7rem 1fr; align-items: baseline; }
}

.post-link:hover { opacity: 0.72; }

.post-link h2 {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  max-width: 46ch;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }

.field { display: block; margin-bottom: 1.1rem; }

.field span {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 0.45rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--ink-raise);
  border: var(--rule);
  color: var(--bone);
  font-family: var(--body);
  font-size: 0.9375rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.field textarea { min-height: 8rem; resize: vertical; }

.linklist { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.linklist li { padding: 0.3rem 0; }
.linklist a { color: #c6c2bb; font-size: 0.9375rem; }
.linklist a:hover { color: var(--gold); }

/* ---------- language switcher ---------- */

.langswitch {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.langswitch a {
  padding: 0.35rem 0.5rem;
  color: rgba(239, 235, 228, 0.5);
  transition: color 0.2s ease;
}

.langswitch a:hover { color: var(--bone); }

.langswitch a[aria-current="true"] {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 900px) {
  .masthead { gap: 0.75rem; }
  .langswitch { margin-left: auto; }
}

/* ---------- locale typography ----------
   Anton carries no Japanese glyphs, so ja falls back to Zen Kaku Gothic New.
   CJK also must not break mid-word, and the display sizes need easing down
   because kanji carry far more ink per character than Latin caps. */

html[lang="ja"] .hero__title,
html[lang="ja"] .band__title,
html[lang="ja"] .pdp__title,
html[lang="ja"] .editorial__quote,
html[lang="ja"] .notice__title,
html[lang="ja"] .prose h2 {
  font-family: var(--body);
  font-weight: 900;
  letter-spacing: 0.01em;
  word-break: keep-all;
  line-break: strict;
  text-transform: none;
}

html[lang="ja"] .hero__title {
  font-size: clamp(1.9rem, 5.2vw, 4rem);
  line-height: 1.18;
  max-width: 22ch;
}

html[lang="ja"] .band__title { font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.2; }
html[lang="ja"] .pdp__title { font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.3; }
html[lang="ja"] .editorial__quote { font-size: clamp(1.25rem, 3.4vw, 2.4rem); line-height: 1.3; }
html[lang="ja"] .notice__title { font-size: clamp(1.5rem, 4.5vw, 2.6rem); line-height: 1.25; }
html[lang="ja"] .prose h2 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.4; }

/* Indonesian keeps Anton but runs longer than English, so give it more room. */
html[lang="id"] .hero__title { max-width: 18ch; font-size: clamp(2.1rem, 6.2vw, 5rem); }
html[lang="id"] .band__title { font-size: clamp(1.5rem, 3.8vw, 2.6rem); }
