/* DEMI Designs & Prints — "Studio Precision" (November 2026 redesign).
   Shared by the homepage and the account pages. The studio adds css/studio.css. */

:root {
  --ground: #F5F4F0;
  --tile: #EAE8E2;
  --tile-hover: #E2DFD7;
  --line: #DDDAD2;
  --field: #CFCBC2;
  --ink: #141412;
  --ink-2: #4F4D48;
  --ink-3: #6B6862;
  --white: #FFFFFF;
  --accent: #2E40E6;
  --accent-hover: #2433C4;
  --danger: #B42318;
  --ok: #1F7A4D;
  --engrave: #4A250F;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1280px;
  --gutter: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--ground); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 12px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Wordmark */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.1; text-decoration: none; color: var(--ink); }
.wordmark b { font-size: 22px; font-weight: 650; letter-spacing: -.04em; }
.wordmark small { font-size: 8px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 14px; border: 1px solid transparent;
  font: 600 17px/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { stroke-width: 2; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--field); font-weight: 500; }
.btn-ghost:hover { background: #ECEAE4; }
.btn-outline {
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-size: 15px; font-weight: 500; border-color: var(--ink); color: var(--ink); background: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--ground); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

.chip {
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field);
  background: transparent; color: var(--ink); font: 500 15px/1 var(--font); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.chip .count { font-family: var(--mono); font-size: 12px; opacity: .72; }

/* Fields */
.field {
  width: 100%; height: 52px; border-radius: 12px; border: 1px solid var(--field);
  background: var(--white); padding: 0 16px; font: 16px var(--font); color: var(--ink);
  transition: border-color .15s ease;
}
.field::placeholder { color: #77746D; }
.field:hover { border-color: #B9B5AC; }
.field:focus { border-color: var(--ink); outline: none; }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field[aria-invalid="true"] { border-color: var(--danger); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
.site-header .bar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; gap: 36px; font-size: 15px; }
.site-nav a, .header-actions .signin { text-decoration: none; }
.site-nav a:hover, .header-actions .signin:hover {
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .signin { font-size: 15px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent;
  border-radius: 12px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .when-open { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: block; }
.menu-toggle[aria-expanded="true"] .when-closed { display: none; }
.mobile-menu { border-top: 1px solid var(--line); padding: 4px var(--gutter) 16px; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 52px; font-size: 18px; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* Hero */
.hero { padding: 56px 0 112px; }
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 56px 72px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.hero h1 { font-size: clamp(48px, 6.7vw, 96px); line-height: .95; letter-spacing: -.05em; font-weight: 600; }
.lede { margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.try { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.try > label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.try .field { height: 64px; border-radius: 14px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; padding: 0 20px; }
.styles { display: flex; gap: 8px; flex-wrap: wrap; }
.style-chip { height: 48px; min-width: 96px; padding: 0 20px; }
.style-chip[data-style="script"] { font-family: 'Dancing Script', cursive; font-weight: 700; font-size: 22px; }
.style-chip[data-style="serif"] { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 18px; }
.style-chip[data-style="block"] { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .06em; }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.reassure { font-size: 14px; color: var(--ink-3); }

.stage { margin: 0; min-width: 0; }
.stage-tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: 28px; background: var(--tile);
  container-type: inline-size; overflow: hidden;
}
.stage-tile img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.engraving {
  position: absolute; left: 50%; top: 49.2%; transform: translate(-50%, -50%);
  white-space: nowrap; line-height: 1; color: var(--engrave); mix-blend-mode: multiply; opacity: .9;
  text-shadow: 0 1px 0 rgba(255, 232, 205, .35); pointer-events: none;
  font-family: 'Dancing Script', cursive; font-weight: 700; font-size: 17cqw;
  transition: opacity .2s ease;
}
.engraving.is-empty { opacity: .35; }
.stage figcaption {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px 0;
  font: 13px var(--mono); color: var(--ink-3);
}

/* Sections */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.h2 { font-size: clamp(38px, 4.4vw, 56px); line-height: 1; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.sub { font-size: 18px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* Collection */
.shop-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-count { font: 13px var(--mono); color: var(--ink-3); }
.product-grid {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 20px;
}
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.card-tile {
  aspect-ratio: 1 / 1; border-radius: 18px; background: var(--tile);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: background-color .25s ease;
}
.card-tile img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.card:hover .card-tile { background: var(--tile-hover); }
.card:hover .card-tile img { transform: translateY(-6px) scale(1.03); }
.card-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-meta > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-name { font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.card-cat { font-size: 14px; color: var(--ink-3); }
.card-meta .icon { color: var(--ink-3); margin-top: 2px; transition: transform .2s var(--ease), color .2s ease; }
.card:hover .card-meta .icon { transform: translateX(4px); color: var(--ink); }

/* How it works */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 48px 72px; align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.steps .num { font: 14px var(--mono); color: var(--ink-3); padding-top: 6px; }
.steps h3 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.steps p { margin-top: 8px; color: var(--ink-2); line-height: 1.55; }

/* Audience */
.audience { padding: 0 0 112px; }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 20px; }
.panel {
  border-radius: 28px; background: var(--tile); padding: 40px;
  display: flex; flex-wrap: wrap; gap: 24px; min-height: 400px;
}
.panel-copy { flex: 1 1 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.kicker { font: 13px var(--mono); color: var(--ink-2); }
.panel h3 { margin-top: 14px; font-size: 32px; line-height: 1.08; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.panel .body { margin-top: 14px; color: var(--ink-2); line-height: 1.55; max-width: 22em; }
.panel-art { flex: 0 1 220px; min-height: 260px; display: flex; align-items: flex-end; justify-content: center; }
.panel-art img { width: 100%; max-height: 320px; object-fit: contain; mix-blend-mode: multiply; }

/* Closing */
.closing { background: var(--ink); color: var(--ground); }
.closing .wrap { padding-top: 136px; padding-bottom: 136px; display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.closing h2 { font-size: clamp(64px, 10vw, 128px); line-height: .92; letter-spacing: -.055em; font-weight: 600; }
.closing-form { width: 100%; max-width: 640px; }
.closing-row { display: flex; gap: 12px; flex-wrap: wrap; }
.closing .field {
  flex: 1 1 260px; min-width: 0; height: 64px; border-radius: 14px; padding: 0 20px;
  background: #1E1E1B; border-color: #45433F; color: var(--ground); font-size: 22px; font-weight: 500; letter-spacing: -.02em;
}
.closing .field::placeholder { color: #8F8C85; }
.closing .field:hover { border-color: #6A6862; }
.closing .field:focus { border-color: var(--ground); }
.closing .btn { height: 64px; padding: 0 28px; }
.closing .reassure { margin-top: 14px; color: #A8A59E; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding: 64px 0 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.footer-nav { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-nav h2 { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.footer-nav ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3);
}

/* Account pages */
.account { min-height: 100vh; display: flex; flex-wrap: wrap; }
.account-main { flex: 1 1 520px; min-width: 0; padding: 32px 64px 40px; display: flex; flex-direction: column; gap: 32px; }
.account-main > .wordmark { align-self: flex-start; }
.account-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.account-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 28px; }
.account-box h1 { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.account-box .intro { margin-top: 10px; color: var(--ink-2); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group > label, .label-row label { font-size: 14px; font-weight: 500; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row a { font-size: 13px; color: var(--ink-2); text-underline-offset: 3px; }
.input-wrap { position: relative; }
.input-wrap .field { padding-right: 76px; }
.password-toggle {
  position: absolute; right: 4px; top: 4px; height: 44px; padding: 0 14px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); font: 500 14px var(--font); cursor: pointer;
}
.password-toggle:hover { background: #F0EEE9; }
.field-error { font-size: 13px; color: var(--danger); }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rules li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.rules li::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 1.5px solid currentColor;
}
.rules li.met { color: var(--ok); }
.rules li.met::before { background: currentColor; box-shadow: inset 0 0 0 3px var(--ground); }
.form .btn { width: 100%; height: 52px; font-size: 16px; margin-top: 6px; }
.result { font-size: 14px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.result:focus { outline: none; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-box .btn-ghost { height: 52px; font-size: 16px; }
.switch { font-size: 15px; color: var(--ink-2); text-align: center; }
.switch a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.fineprint { font-size: 13px; color: var(--ink-3); }

.account-visual {
  flex: 1 1 520px; min-width: 0; min-height: 560px; background: var(--tile);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 48px; position: relative;
}
.account-visual .kicker { position: absolute; left: 32px; top: 28px; }
.piece { position: relative; width: min(460px, 80%); aspect-ratio: 1 / 1; container-type: inline-size; }
.piece img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.piece .engraving { top: 49%; font-size: 20cqw; }
.piece-caption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.piece-caption strong { font-size: 16px; font-weight: 500; }
.piece-caption span { font-size: 14px; color: var(--ink-2); }

/* Responsive */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site-nav, .header-actions .signin { display: none; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .header-actions { gap: 8px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .site-header .bar { height: 64px; gap: 16px; }
  .wordmark b { font-size: 20px; }
  .hero { padding: 24px 0 72px; }
  /* Phone order: headline, then the engraved piece, then the name box (payoff before the ask). */
  .hero-grid { gap: 24px; }
  .hero-copy { display: contents; }
  .hero-copy > div { order: 1; }
  .stage { order: 2; }
  .try { order: 3; }
  .stage-tile { border-radius: 24px; }
  .stage figcaption { font-size: 12px; white-space: nowrap; }
  .cap-extra { display: none; }
  .lede { font-size: 17px; margin-top: 16px; }
  .try .field { height: 56px; font-size: 20px; }
  .style-chip { min-width: 0; flex: 1 1 0; padding: 0 12px; }
  .cta-row .btn { width: 100%; }
  .cta-row { gap: 12px; justify-content: center; }
  .section { padding: 72px 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; margin-top: 32px; }
  .audience { padding-bottom: 72px; }
  .panel { padding: 28px; min-height: 0; }
  .panel-art { min-height: 200px; }
  .closing .wrap { padding-top: 88px; padding-bottom: 88px; }
  .closing .btn { width: 100%; }
  .footer-nav { gap: 40px; }
  .account-visual { display: none; }
  .account-main { padding: 24px 16px 32px; }
  .account-box h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
