:root {
  --paper: #ffffff;
  --ink: #000000;
  --mist: #f3f1ef;
  --hair: #5b4436;
  --line: #e2ddd8;
  --rainbow: linear-gradient(90deg, #e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #8e24aa);
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
}

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

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.site-header .brand img { height: 64px; width: auto; margin: -8px 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.site-nav a { text-decoration: none; }
.site-nav a.text-link:hover { text-decoration: underline; text-underline-offset: 6px; }

.button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--ink);
}

.button:hover { background: var(--paper); color: var(--ink); }

.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-text { padding: 48px var(--gutter); }

.hero h1 {
  margin: 0 0 28px;
  font-weight: 200;
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0 0 32px;
  max-width: 30em;
  color: var(--hair);
}

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

.hero-image { margin: 0; align-self: stretch; }

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: 86vh;
  object-fit: cover;
  object-position: center 30%;
}

/* Collection */
.collection {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(16px, 2.5vw, 32px);
  padding: clamp(56px, 8vw, 104px) var(--gutter) 40px;
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--mist);
  margin-bottom: 20px;
}

.product h2 {
  margin: 0 0 6px;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
}

.product p { margin: 0; font-size: 15px; color: var(--hair); max-width: 30em; }

.more-lines {
  margin: 0;
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  font-size: 15px;
  color: var(--hair);
}

.spectrum { height: 3px; background: var(--rainbow); }

/* About */
.about {
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px 64px;
}

.about h2, .contact h2 {
  margin: 0;
  font-weight: 200;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.3;
}

.about .text p { margin: 0 0 1em; max-width: 36em; }
.about .text p.en { color: var(--hair); font-size: 15px; }

/* Contact */
.contact {
  background: var(--mist);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px 64px;
}

.contact dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px 32px;
}

.contact dt { color: var(--hair); font-size: 15px; }
.contact dd { margin: 0; }

/* Footer */
.site-footer {
  padding: 32px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 14px;
  color: var(--hair);
}

.site-footer p { margin: 0; }

/* Policy page */
.policy {
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  max-width: calc(44em + 2 * var(--gutter));
}

.policy h1 {
  margin: 0 0 8px;
  font-weight: 200;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.3;
}

.policy h2 {
  margin: 2.2em 0 0.4em;
  font-weight: 500;
  font-size: 20px;
}

.policy .updated { color: var(--hair); font-size: 15px; margin: 0 0 2em; }
.policy hr { border: 0; border-top: 1px solid var(--line); margin: 4em 0; }

@media (max-width: 900px) {
  .hero, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-image { order: -1; }
  .hero-image img { max-height: 70vh; }
  .collection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-nav .text-link { display: none; }
  .site-header .brand img { height: 52px; margin: -6px 0; }
  .button { padding: 10px 16px; }
  .hero-text { padding: 32px var(--gutter) 40px; }
  .collection { grid-template-columns: minmax(0, 1fr); }
  .contact dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact dd { margin-bottom: 14px; }
}
