/* COVERF storefront — reset, typography, layout, buttons, forms */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  min-height: 100svh;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.splash-on { overflow: hidden; }
html.splash-seen #splash-screen { display: none !important; }
html.splash-seen body.splash-on { overflow: auto; }
body.is-locked { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }

.site-shell { display: flex; flex-direction: column; min-height: 100svh; position: relative; }
main { flex: 1 1 auto; min-width: 0; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; max-width: 100%; }
button { cursor: pointer; border: 0; background: none; }
input, textarea, select { font-size: 16px; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-section); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.section-head h2 { margin-top: 0.6rem; }
.section-link { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 0.2rem; white-space: nowrap; }
.section-link:hover { color: var(--accent); }

.kicker { font-family: var(--sans); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.kicker a:hover { text-decoration: underline; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: var(--tap); padding: 0 1.9rem;
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1;
  border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn.is-added[data-add-cart] { background: var(--accent); border-color: var(--accent); }

/* Forms */
.field { display: grid; gap: 0.5rem; }
.field label, .delivery-zone legend { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 3rem; padding: 0.75rem 0.9rem;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.form-grid { display: grid; gap: var(--s-3); margin-bottom: var(--s-3); }
.form-note { font-size: var(--step--1); color: var(--accent); margin-bottom: var(--s-2); }
.form-success { display: none; margin-top: var(--s-2); color: var(--accent); }

/* Splash */
#splash-screen { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--white); transition: opacity 0.8s ease; }
#splash-screen.hide-splash { opacity: 0; pointer-events: none; }
.splash-content { text-align: center; }
.splash-content img { width: min(11.5rem, 52vw); margin-inline: auto; }
.splash-write { position: relative; width: min(13rem, 58vw); aspect-ratio: 1133 / 510; margin-inline: auto; }
.sw-piece { position: absolute; inset: 0; background: center / 100% 100% no-repeat; clip-path: inset(var(--t) var(--r) var(--b) var(--l)); animation-fill-mode: both; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
.sw-pen { animation-name: sw-pen; }
.sw-pop { animation-name: sw-pop; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.sw-type { animation-name: sw-type; animation-timing-function: steps(2, end); }
@keyframes sw-pen { from { clip-path: inset(var(--t) 100% var(--b) var(--l)); } to { clip-path: inset(var(--t) var(--r) var(--b) var(--l)); } }
@keyframes sw-pop { from { opacity: 0; transform: translateY(12%); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sw-type { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
