/* Luxury / Editorial — hand-written, no build step, same spirit as ../esim. */

:root {
  --bg: #F9F8F6;        /* warm alabaster */
  --fg: #1A1A1A;        /* rich charcoal */
  --muted-bg: #EBE5DE;  /* pale taupe */
  --muted: #6C6863;     /* warm grey */
  --gold: #D4AF37;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; margin: 0; }

body {
  position: relative; /* anchors the absolute gridlines to full document height */
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Paper grain across the whole page, barely there. */
.noise {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Four editorial gridlines spanning the full document. The outer pair sits in the
   margin, clear of the text edge — letters never touch a line. */
.gridlines { display: none; }
@media (min-width: 1024px) {
  .gridlines { display: block; position: absolute; inset: 0; pointer-events: none; }
  .gridlines i {
    position: absolute; top: 0; bottom: 0; width: 1px;
    background: rgba(26, 26, 26, 0.08);
  }
  .gridlines i:nth-child(1) { left: 1.5rem; }
  .gridlines i:nth-child(2) { left: 33.333%; }
  .gridlines i:nth-child(3) { left: 66.666%; }
  .gridlines i:nth-child(4) { right: 1.5rem; }
}

.page { max-width: 1600px; margin: 0 auto; padding: 0 2rem; }
@media (min-width: 1024px) { .page { padding: 0 4rem; } }

/* ————— header / footer ————— */

header.site {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2.5rem 0; border-bottom: 1px solid var(--fg);
}
.brand {
  font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.05em;
}
header.site nav a {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em;
  margin-left: 2rem; transition: color 500ms var(--ease);
}
header.site nav a:hover { color: var(--gold); }

footer.site {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 3rem 0 3.5rem; border-top: 1px solid rgba(26,26,26,.15);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted);
}

.msg {
  border-top: 4px solid var(--gold); background: var(--muted-bg);
  padding: 1rem 1.5rem; margin-top: 2rem; font-size: 0.875rem;
}

/* ————— shared bits ————— */

.overline {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted);
}
.rule { display: inline-block; height: 1px; width: 3rem; background: currentColor; }

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 em, h2 em { font-style: italic; color: var(--gold); }

/* ————— buttons ————— */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; padding: 0 2.5rem; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
}
.btn-primary {
  position: relative; overflow: hidden;
  background: var(--fg); color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: box-shadow 500ms var(--ease);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn-primary .fill {
  position: absolute; inset: 0; background: var(--gold);
  transform: translateX(-100%); transition: transform 500ms var(--ease);
}
.btn-primary:hover .fill { transform: translateX(0); }
.btn-primary .label { position: relative; z-index: 1; }
.btn-ghost {
  background: transparent; color: var(--fg); border: 1px solid var(--fg);
  transition: background 500ms var(--ease), color 500ms var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

/* ————— hero ————— */

.hero { padding: 2rem 0 3.5rem; }
@media (min-width: 1024px) { .hero { padding: 3rem 0 4.5rem; } }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin: 1.5rem 0; }
.claim { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.claim em { color: var(--gold); font-style: italic; }
.step {
  width: 2.5rem; height: 2.5rem; padding: 0; flex: none;
  background: transparent; border: 1px solid var(--fg); color: var(--fg);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1; cursor: pointer;
  transition: border-color 500ms var(--ease), color 500ms var(--ease);
}
.step:hover { border-color: var(--gold); color: var(--gold); }
.hero .lede { max-width: 40rem; color: var(--muted); margin-bottom: 3.5rem; }

/* Inline bid form, straight under the headline. */
.bidline {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2rem;
  max-width: 52rem;
}
.bidline label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--muted);
}
.bidline label:first-of-type { flex: 1 1 18rem; }
.bidline input {
  display: block; width: 100%; height: 3.5rem; margin-top: 0.75rem; padding: 0.5rem 0 1rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--fg);
  color: var(--fg); font-family: var(--sans); font-size: 1rem;
  transition: border-color 500ms var(--ease);
}
.bidline input[name="amount"] { width: 7rem; }
.bidline input::placeholder { font-family: var(--serif); font-style: italic; color: var(--muted); }
.bidline input:focus { outline: none; border-bottom-color: var(--gold); }
.hero .fine { margin-top: 1.75rem; max-width: 52rem; font-size: 0.75rem; color: var(--muted); }

/* ————— the board ————— */

.board { padding: 1rem 0 5rem; }
.board .overline { margin-bottom: 3rem; }
.row {
  display: grid; grid-template-columns: auto auto 1fr; gap: 0.5rem 1.5rem;
  align-items: center; padding: 2.75rem 0; border-top: 1px solid rgba(26,26,26,.15);
  transition: background 700ms var(--ease);
}
.row:hover { background: rgba(235,229,222,.4); }
.row:first-of-type { border-top: 0; }
@media (min-width: 768px) {
  .row { grid-template-columns: 5rem 4.5rem 1fr auto auto; gap: 2.5rem; }
}
/* No logo, price, or take-button columns before the first bid exists. */
.row-empty { grid-template-columns: auto 1fr; }
@media (min-width: 768px) { .row-empty { grid-template-columns: 5rem 1fr auto; } }

/* App icons follow the house image treatment: grayscale, colour as the reward. */
.logo img {
  display: block; width: 4.5rem; height: 4.5rem; object-fit: cover;
  filter: grayscale(1);
  box-shadow: 0 4px 20px rgba(0,0,0,.06), inset 0 0 0 1px rgba(0,0,0,.06);
  transition: filter 1500ms var(--ease), transform 1500ms var(--ease),
              box-shadow 1500ms var(--ease);
}
.row:hover .logo img {
  filter: grayscale(0); transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.06);
}
.rank { font-family: var(--serif); font-size: 2.5rem; color: var(--muted); }
.row:first-of-type .rank { color: var(--gold); }
.row-title {
  font-family: var(--serif); font-size: 1.5rem;
  transition: color 500ms var(--ease);
}
a.row-title:hover { color: var(--gold); }
.tagline { color: var(--muted); font-size: 0.875rem; }
.meta { font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted); margin-top: 1rem; }
.price { font-family: var(--serif); font-size: 2rem; min-width: 5rem; text-align: right; }
.row .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 768px) { .row .btn { grid-column: auto; } }

/* ————— legal prose ————— */

.prose { max-width: 44rem; padding: 4rem 0 2rem; }
.prose h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 2rem 0 0.75rem; }
.prose .updated { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--muted); margin-bottom: 3rem; }
.prose h2 { font-size: 1.5rem; margin: 3rem 0 1rem; }
.prose p, .prose ul { margin-bottom: 1rem; color: var(--fg); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { border-bottom: 1px solid var(--gold); transition: color 500ms var(--ease); }
.prose a:hover { color: var(--gold); }
.prose .overline a { border-bottom: 0; }
.prose code { font-size: 0.875em; letter-spacing: 0.1em; }
footer.site a { transition: color 500ms var(--ease); }
footer.site a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; }
}
