@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..700;1,6..96,400..700&family=Jost:wght@300..600&display=swap');

/* ---------- Tokens (Norzin brand) ---------- */
:root {
  --bg: #FAFAF9;
  --bg-soft: #F2F1EF;
  --text: #1C1917;
  --muted: #6B6560;
  --line: rgba(28, 25, 23, 0.12);
  --accent: #B45309;

  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1280px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412;
    --bg-soft: #211E1B;
    --text: #F5F4F2;
    --muted: #A8A29E;
    --line: rgba(245, 244, 242, 0.12);
    --accent: #D9A441;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161412;
  --bg-soft: #211E1B;
  --text: #F5F4F2;
  --muted: #A8A29E;
  --line: rgba(245, 244, 242, 0.12);
  --accent: #D9A441;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Logo (swaps for dark mode) ---------- */
.logo { display: inline-block; line-height: 0; }
.logo img { height: 44px; width: auto; }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s var(--ease); }
.link-arrow:hover { border-color: var(--text); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(64px, 10vw, 140px);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* ---------- Website preview (thumb.js) ---------- */
.thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(28, 25, 23, 0.35);
  aspect-ratio: 16 / 10.6;
  display: flex;
  flex-direction: column;
}
.thumb-bar {
  flex: none;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #EEECEA;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.thumb-bar span { width: 7px; height: 7px; border-radius: 50%; background: #D6D3D1; }
.thumb-url {
  margin-left: 10px;
  flex: 1;
  max-width: 60%;
  height: 13px;
  border-radius: 3px;
  background: #fff;
  font-size: 8px;
  line-height: 13px;
  color: #A8A29E;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.thumb-img { flex: 1; width: 100%; object-fit: cover; object-position: top; }

/* Mock page */
.mock { flex: 1; background: var(--bg, #fff); display: flex; flex-direction: column; padding: 4% 6% 0; gap: 7%; overflow: hidden; container-type: inline-size; }
.mock i, .mock b { display: block; }
.m-nav { display: flex; align-items: center; gap: 4%; }
.m-logo { width: 13%; height: 7px; border-radius: 2px; background: var(--a); margin-right: auto; }
.m-nav b { width: 7%; height: 4px; border-radius: 2px; background: rgba(0,0,0,.18); }
.m-h { height: 9px; width: 78%; border-radius: 2px; background: #1c1917; opacity: .85; margin-bottom: 5px; }
.m-short { width: 52%; }
.m-line { height: 4px; width: 88%; border-radius: 2px; background: rgba(0,0,0,.14); margin-bottom: 5px; }
.m-line:nth-of-type(even) { width: 70%; }
.m-btn { width: 26%; height: 11px; border-radius: 20px; background: var(--a); margin-top: 9px; }
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; align-items: center; flex: 1; padding-bottom: 7%; }
.m-pic { height: 100%; min-height: 60px; border-radius: 4px; background: linear-gradient(140deg, var(--a), color-mix(in srgb, var(--a) 45%, white)); }
.m-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.m-center .m-h { width: 64%; } .m-center .m-short { width: 40%; }
.m-center .m-line { width: 54%; }
.m-center .m-btn { width: 20%; }
.m-tight .m-h { margin-bottom: 7px; }
.m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; flex: 1; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 5px; flex: 1; padding-bottom: 5%; }
.m-card { border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--a) 16%, white); border-top: 3px solid var(--a); }
.m-grid .m-card { border-radius: 4px; border-top-width: 2px; }
.m-cover { flex: 1; margin: 0 -6.5%; position: relative; background:
  linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.35)),
  linear-gradient(150deg, color-mix(in srgb, var(--a) 70%, white), var(--a)); }
.m-cover-copy { position: absolute; left: 7%; bottom: 14%; width: 60%; }
.m-light { background: #fff !important; opacity: .95; }
.m-cover .m-line.m-light { opacity: .7; width: 70%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
