/* ============================================================
   Nicola Fraser Interiors — Editorial Design System
   Luxury British trade specification & consultancy.
   Warm neutrals · serif display · full-bleed imagery · hairlines.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #2b241f;
  --ink-soft: #554b40;
  --muted: #857a6a;
  --paper: #f7f1e5;
  --paper-2: #efe6d5;
  --line: #ddd0ba;
  --clay: #a8442f;
  --clay-deep: #87351f;
  --clay-tint: #f4e3dc;
  --white: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", sans-serif;
  --header-h: 88px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--clay); }
ul, ol { list-style: none; }
button { font-family: var(--font-ui); cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
::selection { background: var(--clay); color: var(--white); }

.container { width: min(var(--container), 92%); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.display { font-family: var(--font-display); font-weight: 400; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--clay);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.section { padding: clamp(88px, 11vw, 150px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-top: 20px; }
.section-head .lede { margin-top: 24px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 34px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink);
  background: transparent; transition: all 0.35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--clay); border-color: var(--clay); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.text-link:hover { color: var(--clay); border-bottom-color: var(--clay); }
.text-link .arrow { transition: transform 0.3s var(--ease); }
.text-link:hover .arrow { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-word { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.brand-sub { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--brand-accent, var(--clay)); margin-top: 7px; }
.brand-letter {
  display: inline-block; margin-right: 0.3em;
  opacity: 0; transform: translateY(8px);
  animation: brandLetterIn 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.05s + 0.15s);
}
.brand-letter:last-child { margin-right: 0; }
@keyframes brandLetterIn {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-letter { opacity: 1; transform: none; animation: none; }
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; display: inline-block; padding: 10px 12px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px;
  background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); }
.nav-cta { padding: 13px 26px; }

/* ---------- Mobile nav ---------- */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0 12px;
}
.menu-toggle span { height: 1.5px; width: 100%; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 190;
  background: var(--paper); overflow-y: auto; padding: 24px 8% 40px;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; transition: transform 0.5s var(--ease), visibility 0s; }
.mobile-nav ul { display: flex; flex-direction: column; }
.m-link {
  display: block; padding: 14px 4px; font-family: var(--font-display); font-size: 1.6rem;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.m-link.is-active { color: var(--clay); }
.mobile-nav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 8vw, 120px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy h1 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.03em; margin: 24px 0 28px; }
.hero-copy h1 em { font-style: italic; color: var(--clay); }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-visual .frame { aspect-ratio: 6 / 8; overflow: hidden; background: var(--paper-2); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; animation: heroReveal 1.6s var(--ease) both; }
@keyframes heroReveal { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Feature strip ---------- */
.feature-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature-item { padding: 48px 40px; border-right: 1px solid var(--line); }
.feature-item:first-child { padding-left: 0; }
.feature-item:last-child { border-right: none; }
.feature-num { font-family: var(--font-display); font-style: italic; color: var(--clay); font-size: 1.1rem; }
.feature-item h3 { font-family: var(--font-ui); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 10px 0 8px; }
.feature-item p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Homepage services list ---------- */
.services-cta { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Statement ---------- */
.statement .section-head h2 { max-width: 22ch; line-height: 1.12; }

/* ---------- Fraser Furniture ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px 32px; margin-bottom: clamp(44px, 5vw, 68px);
  border-bottom: 1px solid var(--line); padding-bottom: 16px;
}
.filter-btn {
  position: relative; padding: 4px 2px; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  transition: color 0.3s var(--ease);
}
.filter-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--ink); }
.filter-btn.active::after { transform: scaleX(1); }

.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(48px, 5vw, 72px) clamp(20px, 2.5vw, 40px); }
.piece-card { display: flex; flex-direction: column; }
.piece-card .frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.piece-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.piece-card:hover .frame img { transform: scale(1.04); }
.piece-info { padding: 22px 0 0; }
.piece-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.piece-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; }
.piece-price { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.piece-material { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); margin-top: 6px; }
.piece-desc { font-size: 0.95rem; color: var(--ink-soft); margin-top: 12px; max-width: 52ch; }
.piece-link { margin-top: 18px; }
.piece-card.hidden { display: none; }
.no-results { display: none; color: var(--muted); padding: 40px 0; }
.no-results.show { display: block; }

/* ---------- Value band ---------- */
.value-band { background: var(--ink); color: var(--white); padding: clamp(80px, 10vw, 130px) 0; }
.value-band .eyebrow { color: var(--clay); }
.value-band .eyebrow::before { background: var(--clay); }
.value-band .section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.value-band .lede { color: rgba(255, 255, 255, 0.72); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); margin-top: clamp(48px, 6vw, 72px); }
.value-cell { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 26px; }
.value-cell h3 { font-size: 1.5rem; margin-bottom: 12px; }
.value-cell p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(48px, 6vw, 90px) clamp(32px, 4vw, 80px); }
.project-card { display: block; }
.project-card:nth-child(even) { margin-top: clamp(32px, 5vw, 80px); }
.project-card .frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.project-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project-card:hover .frame img { transform: scale(1.03); }
.project-info { padding: 22px 0 0; }
.project-meta { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); }
.project-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0 6px; }
.project-scope { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.project-desc { font-size: 0.95rem; color: var(--ink-soft); margin-top: 14px; max-width: 56ch; }
.tag-row { display: flex; flex-wrap: wrap; margin-top: 18px; }
.tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tag + .tag::before { content: "·  "; color: var(--clay); }

/* ---------- Services ---------- */
.services-list { border-top: 1px solid var(--line); }
.service-item {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: baseline;
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line);
}
.service-item h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.service-item p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(32px, 4vw, 56px); }
.process-step { border-top: 1px solid var(--ink); padding-top: 24px; }
.process-step h3 { font-size: 1.4rem; margin: 0 0 10px; }
.process-step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 6vw, 96px); align-items: center; }
.about-grid .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.about-grid .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 20px 0 24px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.creds { margin-top: 36px; border-top: 1px solid var(--line); }
.cred-row { display: flex; gap: 20px; font-size: 0.95rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cred-row strong { min-width: 150px; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; font-weight: 600; color: var(--muted); }
.cred-row span { color: var(--ink-soft); }
.values-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); margin-top: 48px; }
.value-pill { border-top: 1px solid var(--line); padding-top: 24px; }
.value-pill h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; margin-bottom: 10px; }
.value-pill p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-grid { max-width: 760px; }

.form { padding: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 0; font-family: var(--font-ui); font-size: 1rem;
  color: var(--ink); background: transparent; border: none; border-bottom: 1px solid var(--line);
  border-radius: 0; transition: border-color 0.3s var(--ease); appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a746b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 32px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form-note { display: none; margin-top: 26px; padding: 18px 22px; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); font-size: 0.9rem; }
.form-note.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band { border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand:hover { color: var(--white); }
.site-footer .brand-word { color: var(--white); font-size: 1.6rem; }
.site-footer .brand-sub { color: var(--clay-tint); letter-spacing: 0.3em; }
.footer-brand p { font-size: 0.9rem; margin-top: 18px; max-width: 40ch; }
.social-list { margin-top: 22px; }
.social-list a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; }
.social-list a:hover { color: var(--white); }
.social-list svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-col h4 { font-family: var(--font-ui); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; color: var(--white); }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: 0.92rem; line-height: 1.9; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.82rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255, 255, 255, 0.72); }
.footer-legal a:hover { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(72px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-top: 20px; max-width: 18ch; }
.page-hero .lede { margin-top: 26px; }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-visual img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .values-list { grid-template-columns: 1fr 1fr; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-strip .container { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .feature-item:first-child { padding-left: 0; }
  .feature-item:last-child { border-bottom: none; }
}
@media (max-width: 620px) {
  .collection-grid, .project-grid, .process-list, .value-grid, .values-list { grid-template-columns: 1fr; }
  .project-card:nth-child(even) { margin-top: 0; }
  .service-item { grid-template-columns: 1fr; gap: 12px; }
  .service-item p { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ---------- Hero social ---------- */
.hero-social { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; }
.hero-social-icons { display: flex; align-items: center; gap: 12px; }
.social-icon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border: 1px solid var(--line); color: var(--ink);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social-icon:hover { color: var(--clay); border-color: var(--clay); }
.social-icon svg { width: 16px; height: 16px; }

/* ---------- Testimonials slider ---------- */
.testimonial-slider { max-width: 880px; margin: 0 auto; }
.testimonial-track { display: grid; }
.testimonial-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
  text-align: center;
}
.testimonial-slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.testimonial-slide blockquote {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35; letter-spacing: -0.01em;
  max-width: 30ch; margin: 0 auto;
}
.testimonial-slide figcaption {
  margin-top: 22px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.testimonial-slide figcaption strong { color: var(--ink); font-weight: 600; }
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.slider-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); color: var(--ink);
  font-size: 1.1rem; transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.slider-btn:hover { color: var(--clay); border-color: var(--clay); }
.slider-dots { display: flex; gap: 10px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; padding: 0; background: var(--line); transition: background 0.3s var(--ease); }
.slider-dot.is-active { background: var(--ink); }

/* ---------- Blog ---------- */
.post-list { border-top: 1px solid var(--line); }
.post-item { border-bottom: 1px solid var(--line); }
.post-item-link { display: block; padding: clamp(28px, 4vw, 46px) 0; }
.post-meta { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); }
.post-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 12px 0 10px; }
.post-excerpt { font-size: 0.95rem; color: var(--ink-soft); max-width: 60ch; }
.post-item-link .text-link { margin-top: 18px; }
.post-date { margin-top: 26px; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Blog post content (markdown) ---------- */
.post-content { max-width: 720px; }
.post-content > * + * { margin-top: 1.4em; }
.post-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.2em; }
.post-content h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 1.8em; }
.post-content p { color: var(--ink-soft); }
.post-content a { color: var(--clay); border-bottom: 1px solid var(--clay); }
.post-content a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.post-content ul, .post-content ol { list-style: disc; padding-left: 1.4em; color: var(--ink-soft); }
.post-content ol { list-style: decimal; }
.post-content li + li { margin-top: 0.5em; }
.post-content img { width: 100%; height: auto; }
.post-content blockquote { border-left: 2px solid var(--clay); padding-left: 1.2em; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; font-style: italic; color: var(--ink); }
.post-content code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.9em; background: var(--paper); padding: 2px 6px; }
.post-content pre { background: var(--paper); padding: 20px; overflow-x: auto; }
.post-content pre code { background: none; padding: 0; }
.post-content hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }
.post-content strong { color: var(--ink); }

/* ---------- Explore index ---------- */
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
.index-item { display: block; }
.index-item .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.index-item .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.index-item:hover .frame img { transform: scale(1.04); }
.index-label {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.index-item:hover .index-label { color: var(--clay); }
.index-label .arrow { transition: transform 0.3s var(--ease); }
.index-item:hover .index-label .arrow { transform: translateX(6px); }

@media (max-width: 620px) {
  .index-grid { grid-template-columns: 1fr; }
}

/* ---------- Product page ---------- */
.product-back { margin-bottom: clamp(32px, 4vw, 56px); }
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
.product-gallery .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.product-gallery .frame img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.product-thumb { width: 96px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: var(--paper-2); border: 1px solid transparent; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb.active { border-color: var(--ink); }
.product-info h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 20px 0 0; }
.product-price { font-family: var(--font-display); font-size: 1.6rem; margin-top: 18px; }
.product-material { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); margin-top: 8px; }
.product-description { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.product-description h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 14px 0 22px; }
.product-description .post-content > :first-child { margin-top: 0; }
.product-actions { margin-top: 34px; }

@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-thumb { width: 72px; }
}