/* Proxy Monkey — v1.1 theme, from the approved direction (night navy page,
   blood red / tide blue accents, parchment form sheet, Rye display, Karla body).
   Fonts are self-hosted: no third-party requests, so the privacy line stays true. */

@font-face {
  font-family: 'Rye';
  src: url('/fonts/rye-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('/fonts/karla-latin-vf.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0a0d1c;      /* page background */
  --deep: #141a33;       /* panels */
  --blood: #e0262d;      /* red side of the mark */
  --tide: #2b6bff;       /* blue side of the mark */
  --parch: #ecdcae;      /* banner parchment */
  --parch-dk: #cdb67a;
  --parch-lt: #fbf5e3;
  --bone: #f4efe2;       /* light text */
  --ink: #1c150c;        /* text on parchment */
  --mist: #a7adc6;       /* secondary text */
  --display: 'Rye', Georgia, 'Times New Roman', serif;
  --body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bone);
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(43, 107, 255, .35), transparent 70%),
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(224, 38, 45, .35), transparent 70%),
    var(--night);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, legend { font-family: var(--display); font-weight: 400; line-height: 1.15; }
a { color: var(--parch); }
p { margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.small, .hint { font-size: .9rem; color: var(--mist); }
.hint { margin-top: .35rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header ---------------------------------------------------------------- */
header { padding: 1.1rem 0; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand {
  font-family: var(--display); font-size: 1.3rem; text-decoration: none;
  color: var(--bone); display: flex; align-items: center; gap: .6rem;
}
/* the mark is a rectangular illustration: squared-off frame, never a circular crop */
.brand img { width: 42px; height: 42px; border: 2px solid var(--parch); border-radius: 8px; object-fit: cover; }
.btn-top {
  font-weight: 700; text-decoration: none; color: var(--bone);
  border: 2px solid var(--parch); padding: .45rem 1rem; border-radius: 6px; white-space: nowrap;
}
.btn-top:hover { background: var(--parch); color: var(--ink); }

/* Hero ------------------------------------------------------------------ */
.hero { padding: 2rem 0 3rem; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem; align-items: center;
}
.logo {
  width: 100%; height: auto; max-width: 440px; display: block; border-radius: 22px;
  box-shadow: -14px 0 40px -10px rgba(43, 107, 255, .6), 14px 0 40px -10px rgba(224, 38, 45, .6);
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--parch); text-shadow: 3px 3px 0 #000; margin: 0; }
.hero .lede { margin-top: 1rem; color: var(--mist); max-width: 48ch; font-size: 1.12rem; }
.cta {
  display: inline-block; margin-top: 1.5rem; background: var(--blood); color: #fff;
  text-decoration: none; font-weight: 700; padding: .85rem 1.6rem; border-radius: 6px; box-shadow: 4px 4px 0 #000;
}
.cta:hover { filter: brightness(1.1); }
.cta:focus-visible, .btn-top:focus-visible { outline: 3px solid var(--parch); outline-offset: 3px; }

.steps {
  list-style: none; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
  margin-top: 3rem; counter-reset: s;
}
.steps li { counter-increment: s; padding-top: .9rem; border-top: 2px dashed var(--parch-dk); }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 1.6rem; color: var(--parch); display: block; }
.steps strong { display: block; margin-top: .2rem; }
.steps span { color: var(--mist); font-size: .98rem; }

/* Finish tiles ---------------------------------------------------------- */
.finishes { padding: 2.5rem 0; }
.finishes h2, .order h2, .honesty h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--parch); margin: 0; }
.finishes .wrap > p { color: var(--mist); margin-top: .5rem; max-width: 60ch; }
/* Product tiles, deliberately not printed-card proportions (63 x 88): the page must
   not imitate card trade dress. Square tiles, no card frame, no card art. */
.finish-grid {
  list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 820px; gap: 1.25rem;
}
.face {
  aspect-ratio: 1 / 1; border-radius: 14px; border: 3px solid #000; padding: 1rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem;
  color: var(--ink); box-shadow: 5px 5px 0 #000;
}
.face h3 { font-size: 1.3rem; margin: 0; }
.face .price { font-weight: 400; font-size: 1rem; }
.face .price b { font-weight: 700; }
.face .with { font-size: .88rem; opacity: .8; }
.face .rate { font-size: .9rem; }
.f-nonfoil { background: #d8d2c2; }
.f-foil {
  background: linear-gradient(125deg, #ffd6f0, #c8e7ff 25%, #d7ffe0 45%, #fff3c4 65%, #e4d2ff 85%, #ffd6f0);
  background-size: 220% 220%; animation: shine 6s ease-in-out infinite;
}
.f-surge {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .55) 0 6px, transparent 6px 16px),
    linear-gradient(125deg, #ff9fd8, #8fd0ff 25%, #9dffb4 45%, #ffe58a 65%, #c7a4ff 85%, #ff9fd8);
  background-size: auto, 220% 220%; animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 50% { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .f-foil, .f-surge { background-position: 0 0; } }

.postage { margin-top: 1.5rem; color: var(--bone); }
.postage b { color: var(--parch); }

/* The form, on a parchment sheet --------------------------------------- */
.order { padding: 1rem 0 3rem; }
.sheet {
  background: var(--parch); color: var(--ink); border: 3px solid #000; border-radius: 10px;
  padding: clamp(1.25rem, 4vw, 2.5rem); margin-top: 1.5rem; box-shadow: 8px 8px 0 #000;
}
fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend { font-size: 1.3rem; padding: 0; margin-bottom: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.grid > div { min-width: 0; }
.full { grid-column: 1 / -1; }
label.f { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
label.f .opt, .opt { font-weight: 400; opacity: .7; }
input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 2px solid var(--ink);
  border-radius: 6px; background: var(--parch-lt); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--tide); box-shadow: 0 0 0 3px rgba(43, 107, 255, .3); }
.sheet a { color: #8a1a1e; }
/* Hints on the parchment sheet use dark ink, not the page's --mist, which is
   unreadable on parchment. #4a3b22 on --parch is about 8:1. */
.sheet .hint { color: #4a3b22; }
.prompt { font-family: var(--display); font-size: 1.05rem; margin: .5rem 0 .35rem; }

.toggle { display: flex; gap: .6rem; flex-wrap: wrap; }
.toggle label {
  flex: 1 1 150px; display: flex; align-items: center; gap: .5rem; border: 2px solid var(--ink);
  border-radius: 6px; padding: .75rem .9rem; cursor: pointer; font-weight: 700; background: var(--parch-lt);
  min-width: 0;
}
.toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--blood); flex: 0 0 auto; }
.toggle label:has(input:checked) { background: var(--ink); color: var(--parch); }

.check { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-top: 1.25rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--blood); flex: 0 0 auto; }
.check:has(input:disabled) { opacity: .5; cursor: not-allowed; }

.guide[hidden] { display: none; }
.guide {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  border-top: 2px dashed var(--ink); padding-top: 1rem; margin: 0 0 1.5rem;
}
.guide span { opacity: .75; font-size: .95rem; }
.guide strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }

button[type="submit"] {
  font: inherit; font-weight: 700; font-size: 1.1rem; background: var(--blood); color: #fff;
  border: 3px solid #000; border-radius: 6px; padding: .9rem 2rem; cursor: pointer;
  width: 100%; max-width: 340px; box-shadow: 4px 4px 0 #000;
}
button[type="submit"]:hover { filter: brightness(1.1); }
button[type="submit"]:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
button[type="submit"]:focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; }
.sheet .foot { color: #4a3b22; }

/* Honesty block, footer ------------------------------------------------- */
.honesty { padding: 1rem 0 3rem; }
.honesty ul { padding-left: 1.2rem; margin: 1rem 0 0; }
.honesty li { margin-bottom: .5rem; color: var(--mist); }
.honesty li strong { color: var(--bone); }

footer { padding: 2rem 0; color: var(--mist); font-size: .9rem; border-top: 1px solid rgba(236, 220, 174, .2); }
footer p { margin-bottom: .6rem; }
footer .disclaimer { color: var(--mist); }

/* Narrow screens: stack the hero with the headline and button first, so they sit
   above the fold; the logo follows at a smaller size. */
@media (max-width: 720px) {
  .hero { padding-top: 1rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 2rem; }
  .hero-text { order: -1; }
  .logo { margin: 0 auto; max-width: 220px; }
  .hero .lede { margin-inline: auto; }
  .steps { text-align: left; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 36px; height: 36px; }
  .btn-top { padding: .4rem .75rem; font-size: .95rem; }
}