/* CALLING CARD — a letterpress invitation. Warm ivory, deep ink,
   thin rules, EB Garamond with a mono for the small caps. Spare, intimate. */

:root {
  --paper: #f1e9db;
  --paper-2: #f6f0e6;
  --ink: #211c17;
  --ink-soft: #6a5f52;
  --rouge: #9e2b45;
  --line: #cdbfa9;
  --serif: "EB Garamond", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif); color: var(--ink); line-height: 1.65;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--paper-2), var(--paper) 70%);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  /* faint paper fiber */
  background-image:
    radial-gradient(120% 90% at 50% 0%, var(--paper-2), var(--paper) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.mono {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* the card */
.card {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 5vw, 64px);
}
.card-inner {
  position: relative; overflow: hidden;
  width: 100%; max-width: 640px;
  /* a faint duotone sky washes the card head, fading into warm paper */
  background-color: var(--paper-2);
  background-image:
    linear-gradient(180deg, rgba(246, 240, 230, 0.62) 0%, rgba(246, 240, 230, 0.93) 34%, var(--paper-2) 56%),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1600&q=70");
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center top;
  background-blend-mode: normal, luminosity;
  border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 6px;
  padding: clamp(30px, 6vw, 64px);
  box-shadow: 0 30px 80px -50px rgba(33, 28, 23, 0.6);
  animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.card-inner > * { position: relative; z-index: 1; }
@keyframes settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.card-head, .card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.card-head { padding-bottom: clamp(28px, 5vw, 48px); }
.monogram { color: var(--rouge); font-size: 1.4rem; }

/* a single small, tipped-in photo — a duotone sky, hairline-framed */
.plate {
  margin: 6px auto clamp(4px, 3vw, 20px); max-width: 100%;
  border: 1px solid var(--line); padding: 6px; background: var(--paper);
  box-shadow: 0 18px 44px -34px rgba(33, 28, 23, 0.7);
}
.plate img {
  display: block; width: 100%; max-width: 100%; height: auto;
  aspect-ratio: 16 / 7; object-fit: cover;
  /* sepia/duotone so it reads as ink-on-ivory, not a stock photo */
  filter: sepia(0.42) saturate(0.7) contrast(0.98) brightness(1.04);
}

/* hero */
.hero { text-align: center; padding: clamp(16px, 4vw, 36px) 0; }
.eyebrow { display: block; margin-bottom: 18px; }
.title {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.04; letter-spacing: 0.01em;
  color: var(--ink);
}
.rule { color: var(--rouge); letter-spacing: 0.5em; margin: 20px 0; font-size: 0.9rem; }
.essence {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem); color: var(--ink); max-width: 38ch;
  margin: 0 auto; font-style: italic;
}

/* pilots — quiet centered line, ruled */
.pilots-band {
  text-align: center; margin: clamp(34px, 6vw, 56px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0;
}
.pilots { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--ink-soft); font-style: italic; }

/* invitation — minimal underlined fields */
.invite { text-align: center; }
.invite .eyebrow { margin-bottom: 22px; }
form { display: grid; gap: 20px; text-align: left; max-width: 460px; margin: 0 auto; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: grid; gap: 7px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
}
.opt { text-transform: none; letter-spacing: 0; font-size: 0.7rem; color: var(--rouge); }
input, select, textarea {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink); background: transparent;
  border: none; border-bottom: 1px solid var(--line); padding: 8px 2px; transition: border-color 0.2s;
}
input::placeholder, textarea::placeholder { color: #b1a48d; font-style: italic; }
select option { background: var(--paper-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rouge); }
textarea { resize: vertical; }
button[type="submit"] {
  justify-self: center; margin-top: 8px; cursor: pointer; font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-2);
  background: var(--ink); border: none; padding: 14px 30px; border-radius: 2px; transition: background 0.2s;
}
button[type="submit"]:hover { background: var(--rouge); }
button[type="submit"]:disabled { opacity: 0.55; cursor: default; }
.fine { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.success { font-style: italic; font-size: 1.2rem; color: var(--rouge); text-align: center; }

.card-foot { padding-top: clamp(28px, 5vw, 48px); margin-top: clamp(20px, 4vw, 36px); border-top: 1px solid var(--line); }

/* tap targets clear 44px; no horizontal overflow on small screens */
html, body { overflow-x: hidden; }
img { max-width: 100%; }
input, select, textarea, button[type="submit"] { min-height: 44px; }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .card-head, .card-foot { flex-wrap: wrap; justify-content: center; text-align: center; }
  .plate img { aspect-ratio: 16 / 9; }
  button[type="submit"] { width: 100%; }
}

@media (max-width: 380px) {
  .card { padding: 14px; }
  .card-inner { padding: 24px 18px; outline-offset: 4px; }
  .mono { font-size: 0.6rem; letter-spacing: 0.18em; }
  form { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) { .card-inner { animation: none; } }
