/* NOREN storefront — built from noren-webpage mockup, 2026-09-29 */
:root {
  --bg: #f3f1ed;
  --bg-soft: #f8f7f4;
  --bg-steps: #faf9f7;
  --wall: #e6ddd2;
  --wall-far: #edeae4;
  --ink: #1c1c1c;
  --text: #2b2b2b;
  --muted: #625e58;
  --line: #ddd8d0;
  --line-strong: #c9c3ba;
  --white: #ffffff;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font-family: var(--sans); font-size: 14px; color: var(--ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; font-family: var(--sans); font-size: 13px;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  background: var(--bg);
}
.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .34em;
  text-decoration: none;
  line-height: 1;
  padding-right: .1em;
}
.site-nav { display: flex; gap: clamp(24px, 4vw, 48px); margin-left: clamp(0px, 13.5vw, 176px); }
.site-nav a { font-family: var(--sans); font-size: 13px; text-decoration: none; color: var(--ink); }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-tools { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.icon-btn {
  position: relative; flex: 0 0 auto;
  background: none; border: 0; padding: 4px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 22px; height: 22px; max-width: none; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { opacity: .65; }
.cart-count {
  position: absolute; top: -4px; right: -6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 10px; line-height: 17px; text-align: center;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 42%) 1fr;
  background: linear-gradient(90deg, var(--wall-far) 0%, var(--wall) 42%);
  min-height: clamp(440px, 47vw, 640px);
}
.hero-copy {
  align-self: center;
  padding: clamp(40px, 6vw, 88px) 24px clamp(48px, 6vw, 88px) var(--gutter);
  position: relative; z-index: 1;
}
.hero-copy h1 {
  font-size: clamp(48px, 6.6vw, 84px);
  line-height: .98;
  letter-spacing: -.012em;
  margin: 0 0 24px;
}
.hero-copy p {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.45;
  max-width: 31ch;
  color: var(--text);
  margin: 0 0 34px;
}
.hero-photo { position: relative; min-height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--wall) 0%, rgba(230, 221, 210, 0) 22%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1;
  padding: 16px 20px;
  border: 1px solid var(--ink); border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, opacity .15s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #343434; }
.btn-outline { background: var(--white); color: var(--ink); }
.btn-outline:hover { background: #f0eeea; }
.btn-outline[aria-pressed="true"] { background: var(--ink); color: #fff; }
.btn-hero { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; padding: 18px 30px; }
.btn-cart { width: 100%; font-size: 16px; padding: 19px 20px; margin-top: 12px; }
.btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .swap:focus-visible, .qty button:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

/* Steps */
.steps {
  background: var(--bg-steps);
  padding: clamp(48px, 6vw, 72px) var(--gutter) clamp(48px, 6vw, 72px);
  text-align: center;
}
.steps h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
.steps-sub {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin: 16px auto 0;
  font-size: 16px; color: var(--text);
}
.steps-sub::before, .steps-sub::after { content: ''; flex: 0 0 clamp(40px, 6vw, 72px); height: 1px; background: var(--line-strong); }
.steps-grid {
  list-style: none; margin: clamp(32px, 4vw, 48px) auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
}
.steps-grid li { padding: 8px clamp(16px, 3vw, 40px) 0; border-left: 1px solid var(--line); }
.steps-grid li:first-child { border-left: 0; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%;
  font-size: 16px; line-height: 1;
}
.steps-grid h3 { font-size: clamp(21px, 2vw, 25px); margin: 18px 0 8px; line-height: 1.2; }
.steps-grid p { font-size: 16px; line-height: 1.5; color: var(--text); max-width: 30ch; margin: 0 auto; }
.step-figure { margin: 22px auto 0; max-width: 340px; }
.step-figure img, .step-figure svg { width: 100%; height: auto; aspect-ratio: 300 / 196; object-fit: cover; }

/* Order section */
.order-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 7vw, 88px);
  align-items: start;
}
.about { padding-top: clamp(24px, 3vw, 32px); }
.about img { width: 100%; height: auto; aspect-ratio: 455 / 320; object-fit: cover; }
.eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin: 26px 0 10px;
}
.about h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 0 0 10px; }
.about p:not(.eyebrow) { font-size: 17px; line-height: 1.55; color: var(--text); max-width: 46ch; }

.order {
  position: relative; z-index: 0;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px) clamp(28px, 3vw, 40px);
  margin: 0;
}
/* The panel's background runs to the right edge of the page, as in the mockup. */
.order::before {
  content: ''; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: 0; width: 100vw;
  background: var(--bg-soft);
}
.order h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  padding-bottom: 16px; margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.order-step { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.order-step legend { font-size: 16px; padding: 0; margin: 0 0 12px; }

.dims { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.dim { display: flex; align-items: stretch; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.dim input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: 0; background: transparent; padding: 14px 14px; margin: 0;
}
.dim input::placeholder { color: var(--muted); }
.dim select {
  flex: 0 0 auto;
  border: 0; border-left: 1px solid var(--line); background: transparent;
  padding: 0 30px 0 12px; margin: 0;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.dim input:focus-visible, .dim select:focus-visible { outline-offset: -2px; }
.swap { background: none; border: 0; padding: 6px; display: inline-flex; }
.swap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.swap:hover { opacity: .6; }
.hint { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.hint.is-error { color: #a3231a; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.design-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-btn { cursor: pointer; }
.file-btn.has-file { background: #343434; }
#file:focus-visible + .file-btn { outline: 2px solid var(--ink); outline-offset: 2px; }
.file-name { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.file-name:empty { margin: 0; }
.brief { margin-top: 12px; }
.brief label { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.brief textarea {
  width: 100%; border: 1px solid var(--line); background: var(--white);
  padding: 12px 14px; margin: 0; resize: vertical; line-height: 1.5;
}

.qty { display: inline-flex; align-items: stretch; background: var(--white); border: 1px solid var(--line); }
.qty button { width: 46px; border: 0; background: transparent; font-family: var(--sans); font-size: 20px; line-height: 1; padding: 0; }
.qty button:hover { background: #f0eeea; }
.qty input {
  width: 64px; height: 46px; text-align: center; margin: 0;
  border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: transparent; font-size: 15px;
}

.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 16px 0 4px; margin-top: 4px;
  font-size: 17px;
}
.price-row #price { font-size: 20px; font-variant-numeric: tabular-nums; }
.price-row small { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: 8px; font-variant-numeric: normal; }
.order-note { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.55; margin: 14px 0 0; }
.order-note a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.product-name { font-size: 15px; color: var(--text); margin: 4px 0 0; }
.product-name sup { font-size: .55em; vertical-align: top; position: relative; top: .3em; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  padding: 22px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 11px; letter-spacing: .04em; color: var(--muted);
}
.spec:empty { display: none; }

/* Cart drawer */
.cart-backdrop { position: fixed; inset: 0; background: rgba(28, 28, 28, .28); z-index: 40; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(430px, 100vw);
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .25s ease;
}
.cart.is-open { transform: none; }
.cart[hidden] { display: none; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 24px; }
.cart-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 24px 16px; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-title, .cart-item-meta { overflow-wrap: anywhere; min-width: 0; }
.cart-item-title { font-size: 17px; }
.cart-item-meta { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.5; grid-column: 1; }
.cart-item-price { font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.cart-item-remove {
  grid-column: 2; justify-self: end;
  background: none; border: 0; padding: 0;
  font-family: var(--sans); font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.cart-empty { padding: 32px 0; color: var(--muted); }
.checkout { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.checkout-title { font-size: 20px; margin: 0 0 14px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.co-wide { grid-column: 1 / -1; }
.co-field label { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.co-field input, .co-field textarea {
  width: 100%; margin: 0; padding: 11px 12px;
  border: 1px solid var(--line); background: var(--white); line-height: 1.4;
}
.co-field textarea { resize: vertical; }
.co-error { font-family: var(--sans); font-size: 12px; color: #a3231a; line-height: 1.5; margin: 12px 0 0; }
.co-error:empty { display: none; }
.order-done { padding: 24px 0; }
.order-done h3 { font-size: 24px; margin: 0 0 10px; }
.order-done p { font-size: 16px; line-height: 1.5; margin: 0 0 18px; }
.file-name.is-error { color: #a3231a; }
.cart-foot { padding: 16px 24px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 4px; }
.cart-note { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 12px; }
body.cart-open { overflow: hidden; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 12px);
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 13px;
  padding: 12px 18px; border-radius: 2px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.notfound { padding: clamp(48px, 10vw, 120px) var(--gutter); min-height: 55vh; }
.notfound h1 { font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 20px; }
.text-link { text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* Narrow screens */
@media (max-width: 960px) {
  /* 16px stops iOS Safari zooming into fields on focus (phones and landscape) */
  input, select, textarea { font-size: 16px; }
  .site-header { gap: 20px; }
  .site-nav { margin-left: 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; background: var(--wall); }
  .hero-photo { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
  .hero-photo::before { background: linear-gradient(0deg, var(--wall) 0%, rgba(233, 226, 216, 0) 20%); }
  .hero-copy { padding: 8px var(--gutter) 48px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 520px; }
  .steps-grid li { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0 36px; }
  .steps-grid li:first-child { border-top: 0; padding-top: 8px; }
  .order-section { grid-template-columns: 1fr; }
  .about { padding-top: 0; }
  .order::before { width: auto; right: 0; }
}
@media (max-width: 600px) {
  .site-header { grid-template-columns: auto 1fr; row-gap: 10px; padding: 14px var(--gutter) 12px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; }
  .site-nav a { font-size: 13px; }
  .header-tools { gap: 18px; justify-self: end; }
  .wordmark { font-size: 20px; }
  .hero-copy h1 { font-size: 46px; }
  .dims { grid-template-columns: 1fr; }
  .swap { justify-self: center; transform: rotate(90deg); }
  .design-choice { grid-template-columns: 1fr; }
  .co-grid { grid-template-columns: 1fr; }
  .steps-sub { max-width: 30ch; }
  .steps-sub::before, .steps-sub::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart, .toast, .btn { transition: none; }
}

@media print {
  #search-btn, #account-btn, .cart, .cart-backdrop, .toast, .skip { display: none !important; }
  .order { break-inside: avoid; }
  .hero { min-height: 0; }
}
