/* Sandook web pages: the website's look (website/public/index.html), legible, WCAG 2.1 AA contrast [APP-7].
   Fonts: Latin subsets of the app's brand fonts (flutter-frontend/assets/fonts) as WOFF2, made with
   fontTools' pyftsubset (--flavor=woff2); their licences sit next to them. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-display: swap; src: url("fonts/CormorantGaramond-Light.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("fonts/Jost-Regular.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("fonts/Jost-Medium.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --ink: #2b2622; --muted: #6f675d; --mocha: #6b5344; --gold: #bfa77f; --sand: #cdbfa6;
  --ivory: #faf7f2; --cream: #f1ebe0; --page: #ece6da; --dusk: #e3d8ca;
  --line: rgba(191, 167, 127, 0.55); --danger: #a4161a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0; min-height: 100vh; padding: 1rem;
  font: 400 16px/1.6 var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse at 28% 12%, var(--cream) 0%, var(--page) 62%, var(--dusk) 100%);
}
.card {
  max-width: 30rem; margin: clamp(1rem, 8vh, 4.5rem) auto; padding: 2.5rem 2rem;
  background: rgba(250, 247, 242, 0.82); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 30px 60px -40px rgba(43, 38, 34, 0.45);
}
h1 { font: 300 2.4rem/1.1 var(--serif); letter-spacing: -0.01em; margin: 0.4rem 0 1rem; }
p { color: var(--muted); }
.icon { display: block; border-radius: 16px; box-shadow: 0 10px 24px -14px rgba(43, 38, 34, 0.5); margin-bottom: 1.75rem; }
.eyebrow { margin: 0; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.lead { margin: 0 0 1.75rem; color: var(--mocha); }
label { display: block; font-weight: 500; margin: 1rem 0 0.25rem; }
input, textarea {
  width: 100%; font-family: inherit; padding: 0.7rem; font-size: 1rem; color: var(--ink);
  background: rgba(250, 247, 242, 0.6); border: 1px solid var(--sand); border-radius: 4px;
}
input:focus, textarea:focus { outline: none; border-color: var(--mocha); box-shadow: 0 0 0 3px rgba(191, 167, 127, 0.25); }
.button {
  display: inline-block; margin: 0.5rem 0.5rem 0 0; padding: 0.85rem 1.4rem; border-radius: 4px;
  border: 1px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none;
  font: 500 0.9rem/1.2 var(--sans); letter-spacing: 0.06em; cursor: pointer;
}
.button:hover { border-color: var(--mocha); color: var(--mocha); }
.button.primary { background: var(--ink); color: var(--ivory); box-shadow: 0 4px 12px rgba(43, 38, 34, 0.12); }
.button.primary:hover { background: var(--mocha); color: var(--ivory); }
/* Invite page: full-width buttons, the store under a lead-in line [APP-6]. */
.button.wide { display: block; margin: 0.6rem 0 0; text-align: center; }
.store-note { margin: 1.75rem 0 0; font: 300 1.25rem/1.3 var(--serif); }
.redirect-note { margin: 1.5rem 0 0; font-size: 0.85rem; text-align: center; }
.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.error { color: var(--danger); font-weight: 500; }
.pieces { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1rem; }
.piece { display: flex; flex-direction: column; }
.piece img, .piece-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--cream); }
.piece-photo { margin-bottom: 1.25rem; }
.piece-name { margin-top: 0.5rem; font: 400 1.1rem/1.25 var(--serif); }
.piece-designer { font-size: 0.8rem; color: var(--muted); }
