/* parlorium.app — one stylesheet for the marketing and support pages.
   Palette, faces and elevations are the app's Heirloom Parlor theme
   (jbox repo: docs/shells/THEME.md). The privacy page is self-contained and
   does not load this file. */

@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ground: #2b1b12;
  --ground-top: #342115;
  --ground-bottom: #241610;
  --surface: #3a2618;
  --ink: #f1e6d0;
  --ink-muted: #c9b896;
  --felt: #1f3d30;
  --on-felt: #f1e6d0;
  --on-felt-muted: #c9b896;
  --paper: #f3ead7;
  --on-paper: #2b1b12;
  --on-paper-muted: #6b5a48;
  --paper-edge-near: #d9c9a8;
  --paper-edge-far: #c9b896;
  --brass: #c89b4b;
  --brass-hi: #e2be6e;
  --brass-lo: #b8893a;
  --on-brass: #1e1408;
  --hairline: rgba(200, 155, 75, 0.35);
  --grain: repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.16) 0 2px, transparent 2px 9px,
      rgba(255, 255, 255, 0.035) 9px 11px, transparent 11px 23px);
  --serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #f3ead7;
    --ground-top: #f3ead7;
    --ground-bottom: #f3ead7;
    --surface: #fbf6ea;
    --ink: #2b1b12;
    --ink-muted: #6b5a48;
    --felt: #1f5a43;
    --on-felt: #f3ead7;
    --on-felt-muted: #c9dbcf;
    --paper: #fbf6ea;
    --brass: #a87e33;
    --hairline: rgba(43, 27, 18, 0.14);
    --grain: repeating-linear-gradient(0deg, rgba(43, 27, 18, 0.035) 0 1px, transparent 1px 4px);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  background:
    var(--grain),
    linear-gradient(var(--ground-top), var(--ground) 60%, var(--ground-bottom));
  background-color: var(--ground);
  min-height: 100vh;
}

a { color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-hi); }
@media (prefers-color-scheme: light) { a:hover { color: var(--on-paper); } }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header ---- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding: 1.25rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: 22%; box-shadow: 0 0 0 1px var(--hairline); }
.brand span { font: 400 1.5rem/1 var(--serif); letter-spacing: 0.005em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: 0.95rem; }
.site-nav a { color: var(--ink-muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .lang { border: 1px solid var(--hairline); border-radius: 999px; padding: 0.25rem 0.8rem; color: var(--brass); }

/* ---- Type ---- */
.eyebrow { margin: 0 0 0.9rem; font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); line-height: 1.1; }
h3 { font-size: 1.35rem; line-height: 1.15; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 34rem; }

/* ---- Hero: the box lid ---- */
.lid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 2.5rem;
  margin: 0.75rem 0 4.5rem;
  padding: clamp(1.75rem, 5vw, 4rem);
  color: var(--on-felt);
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 7px),
    var(--felt);
  border-radius: 14px;
  box-shadow: inset 0 0 0 6px var(--felt), inset 0 0 0 7px #c89b4b, inset 0 -40px 60px rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.lid .eyebrow { color: #e2be6e; }
.lid .lead { color: var(--on-felt-muted); }
.lid h1 { margin-bottom: 1.25rem; }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.store {
  display: inline-flex; flex-direction: column; gap: 0.1rem;
  min-width: 11.5rem; padding: 0.6rem 1.1rem 0.7rem;
  border: 1px solid rgba(226, 190, 110, 0.55); border-radius: 10px;
  color: var(--on-felt); text-decoration: none;
}
.store small { font: 600 0.68rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #e2be6e; }
.store b { font: 400 1.2rem/1.2 var(--serif); }
a.store { background: linear-gradient(135deg, #e2be6e, #b8893a); border-color: transparent; color: var(--on-brass); }
a.store small { color: var(--on-brass); }
a.store:hover { color: var(--on-brass); filter: brightness(1.06); }

.phone {
  justify-self: center;
  width: min(100%, 17.5rem);
  margin: 0;
  padding: 7px;
  border-radius: 30px;
  background: linear-gradient(135deg, #e2be6e, #8c6420);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }

/* ---- Sections ---- */
section { margin: 0 0 4.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--hairline); }

/* The cabinet: five drawers of card stock */
.drawers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.drawer {
  grid-column: span 2;
  padding: 1.25rem 1.35rem 1.4rem;
  color: var(--on-paper);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--paper-edge-near), 0 3px 0 var(--paper-edge-far), 0 10px 20px rgba(0, 0, 0, 0.22);
}
.drawer:nth-child(1), .drawer:nth-child(2) { grid-column: span 3; }
.drawer .eyebrow { color: #8c6420; margin-bottom: 0.6rem; }
.drawer p { margin: 0; color: var(--on-paper-muted); font-size: 0.98rem; line-height: 1.6; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--hairline), 0 14px 28px rgba(0, 0, 0, 0.3); }
.shots figcaption { margin-top: 0.8rem; font: 400 1.1rem/1.2 var(--serif); text-align: center; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.facts ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.facts li { position: relative; padding: 0.7rem 0 0.7rem 1.4rem; border-bottom: 1px solid var(--hairline); color: var(--ink-muted); }
.facts li::before { content: ""; position: absolute; left: 0.1rem; top: 1.25rem; width: 0.42rem; height: 0.42rem; background: var(--brass); transform: rotate(45deg); }

/* Privacy plate */
.plate {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem;
  padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.plate p { margin: 0.6rem 0 0; color: var(--ink-muted); max-width: 44rem; }
.button {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 8px; white-space: nowrap;
  font: 600 0.95rem/1.2 var(--sans); text-decoration: none;
  color: var(--on-brass); background: linear-gradient(135deg, #e2be6e, #b8893a);
}
.button:hover { color: var(--on-brass); filter: brightness(1.06); }

/* ---- Prose pages (support, 404) ---- */
.prose { max-width: 44rem; margin: 1.5rem 0 4.5rem; }
.prose h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 1rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.prose .lead { max-width: none; color: var(--ink-muted); }
.prose p, .prose li { color: var(--ink-muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.contact-card {
  margin: 1.75rem 0; padding: 1.4rem 1.5rem; color: var(--on-paper); background: var(--paper); border-radius: 8px;
  box-shadow: 0 1px 0 var(--paper-edge-near), 0 3px 0 var(--paper-edge-far), 0 10px 20px rgba(0, 0, 0, 0.22);
}
.contact-card .eyebrow { color: #8c6420; margin-bottom: 0.4rem; }
.contact-card a { color: var(--on-paper); font: 400 1.45rem/1.2 var(--serif); overflow-wrap: anywhere; }
.contact-card p { margin: 0.5rem 0 0; color: var(--on-paper-muted); font-size: 0.95rem; }

/* ---- Footer ---- */
.site-footer { padding: 1.5rem 0 3rem; border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }

/* ---- Narrow screens ---- */
@media (max-width: 52rem) {
  .lid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .phone { width: min(70%, 15rem); }
  .drawers { grid-template-columns: minmax(0, 1fr); }
  .drawer, .drawer:nth-child(1), .drawer:nth-child(2) { grid-column: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .plate { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(3, minmax(9.5rem, 1fr)); overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x mandatory; }
  .shots li { scroll-snap-align: start; }
}
@media (max-width: 30rem) {
  .site-nav { gap: 0.9rem; font-size: 0.9rem; }
  .brand span { font-size: 1.3rem; }
  .store { min-width: 0; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Transform only: nothing is ever hidden if the animation does not run. */
  .lid > div > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .lid > div > :nth-child(2) { animation-delay: 0.06s; }
  .lid > div > :nth-child(3) { animation-delay: 0.12s; }
  .lid > div > :nth-child(4) { animation-delay: 0.18s; }
  .phone { animation: settle 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s backwards; }
  @keyframes rise { from { transform: translateY(10px); } }
  @keyframes settle { from { transform: translateY(18px) rotate(0deg); } }
}
