/* GraKa Games public site: the app's Home look (PoshHomeSkin in
   packages/ui_kit/lib/src/skins/posh/posh_home_skin.dart, GoldButton and
   HousePlate in packages/ui_kit/lib/src/home/home_widgets.dart). */
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #14070a;
  --velvet-top: #4e111b;
  --velvet-mid: #330b13;
  --velvet-bottom: #1b070b;
  --warm-light: 255, 197, 106;
  --gold: #f3cf6a;
  --gold-gradient: linear-gradient(180deg, #fff1b8 0%, #f3cf6a 38%, #c8962b 78%, #8a6418 100%);
  --gold-border: #5e430f;
  --on-gold: #3a2a0c;
  --text: #f6ead0;
  --text-muted: #cdb690;
  --plate: rgba(28, 8, 12, 0.85);
  --plate-edge: #b8903f;
  --title: "Cinzel", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.4 var(--body);
  /* Warm light from the top centre and two sconces, the damask, the velvet. */
  background:
    radial-gradient(ellipse 70% 55% at 50% -8%, rgba(var(--warm-light), .30), rgba(var(--warm-light), .10) 45%, transparent 100%),
    radial-gradient(circle 38vh at 10% 22vh, rgba(var(--warm-light), .14), transparent),
    radial-gradient(circle 38vh at 90% 22vh, rgba(var(--warm-light), .14), transparent),
    url("/img/damask.svg"),
    linear-gradient(180deg, var(--velvet-top) 0, var(--velvet-mid) 55vh, var(--velvet-bottom) 100%);
  background-color: var(--background);
  padding: 0 16px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

/* The thin gold hairline frame inside the window. */
.frame {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(243, 207, 106, .45);
  pointer-events: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 0 0;
}
.logo { width: 48px; height: 48px; }
.brand {
  font: 700 22px/1 var(--title);
  letter-spacing: .08em;
  color: var(--gold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}

main { max-width: 980px; margin: 0 auto; }

.hero { text-align: center; padding: 24px 0 8px; }

h1 {
  margin: 8px 0 4px;
  font: 700 clamp(30px, 10vw, 72px)/1.05 var(--title);
  white-space: nowrap;
  letter-spacing: .06em;
  color: var(--gold);
  text-shadow: 0 3px 12px rgba(0, 0, 0, .55);
}
h1 { display: flex; align-items: center; justify-content: center; gap: .3em; }
h1::before, h1::after {
  content: "";
  flex: 0 1 90px;
  min-width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
h1::after { background: linear-gradient(90deg, var(--gold), transparent); }

.lead { margin: 6px auto 0; max-width: 34em; font-size: 18px; color: var(--text-muted); }

.heads {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin: 18px auto 0;
  max-width: 440px;
  /* The figures stand in the house's dark hole, as on Home. */
  background: radial-gradient(ellipse 50% 16% at 50% 94%, rgba(0, 0, 0, .65), transparent 70%);
}
.heads img { width: 46%; height: auto; display: block; }

/* GoldButton: bevelled gold, dark Cinzel lettering, radius 0.3 × height. */
.gold-button {
  display: inline-block;
  margin: 22px auto 0;
  padding: 16px 26px;
  max-width: 100%;
  border-radius: 17px;
  border: 1.2px solid var(--gold-border);
  background: var(--gold-gradient);
  box-shadow: 0 0 20px rgba(243, 207, 106, .28), 0 3px 8px rgba(0, 0, 0, .67), inset 0 0 0 1px rgba(255, 246, 214, .4);
  color: var(--on-gold);
  font: 900 18px/1.25 var(--title);
  letter-spacing: .06em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .08s ease, filter .08s ease;
}
.gold-button:hover { filter: brightness(1.06); }
.gold-button:active { transform: scale(.97); }
.gold-button:focus-visible, .plate-button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.gold-button.small { margin: 0; padding: 11px 24px; font-size: 16px; border-radius: 13px; }
.gold-button[disabled] { filter: grayscale(.5) brightness(.8); cursor: default; }

/* HousePlate: the dark plate with a gold edge. */
.plate {
  background: var(--plate);
  border: 1px solid rgba(184, 144, 63, .75);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .6);
}

.plate-button {
  padding: 11px 20px;
  border-radius: 13px;
  border: 1px solid rgba(184, 144, 63, .75);
  background: var(--plate);
  color: var(--gold);
  font: 700 15px/1.25 var(--title);
  letter-spacing: .06em;
  cursor: pointer;
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 34px 0 0;
}
.shots figure { margin: 0; padding: 6px; overflow: hidden; }
.shots img { display: block; width: 100%; height: auto; border-radius: 7px; }

@media (min-width: 760px) {
  .shots { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .shots .wide { grid-row: span 2; }
  .shots .wide img { height: 100%; object-fit: cover; }
  .hero { display: grid; grid-template-columns: 1fr 340px; align-items: center; text-align: left; gap: 0 24px; }
  .hero h1, .hero .lead, .hero .gold-button { grid-column: 1; }
  .hero .heads { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .hero h1 { justify-content: flex-start; }
  .hero h1::before { display: none; }
  .lead { margin-left: 0; }
  .gold-button { margin-left: 0; }
}

.foot {
  margin: 36px auto 0;
  padding: 18px 0 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* The contact form: a plate over a dimmed house. */
.dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 22px 20px 20px;
  color: var(--text);
  border-color: var(--plate-edge);
  background: #1c080c;
}
.dialog::backdrop { background: rgba(10, 3, 5, .72); }
.dialog h2 {
  margin: 0 0 14px;
  font: 700 22px/1.2 var(--title);
  letter-spacing: .05em;
  color: var(--gold);
  text-align: center;
}
.dialog label { display: block; margin: 0 0 12px; font-size: 15px; color: var(--text-muted); }
.dialog .opt { font-size: 13px; opacity: .8; }
.dialog input, .dialog textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  font: 16px/1.35 var(--body);
  color: var(--text);
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(184, 144, 63, .6);
  border-radius: 8px;
}
.dialog input:focus, .dialog textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(243, 207, 106, .25); }
.dialog textarea { resize: vertical; min-height: 84px; }
.dialog .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dialog .note { margin: 2px 0 8px; font-size: 13px; color: var(--text-muted); }
.dialog .status { min-height: 1.3em; margin: 0 0 10px; font-size: 14px; color: #ffb4a8; }
.dialog .row { display: flex; justify-content: flex-end; gap: 12px; }
.dialog .thanks { padding: 10px 0 0; }
