/* ===========================================================================
   Cypress Row — the door
   ---------------------------------------------------------------------------
   Palette is green-forward on purpose. Limewash appears only on the sign-in
   plate, the way a brass plate sits on a dark painted door.
   =========================================================================== */

:root {
  --iron:      #131E19;  /* near-black, green cast — deepest ground */
  --cypress:   #1E382C;  /* the dominant field */
  --moss:      #3C5C4C;  /* hairlines and ironwork on dark */
  --river:     #2E7370;  /* the only interactive accent */
  --river-lit: #3D918D;  /* hover / focus */
  --limewash:  #EDE8DA;  /* the plate */
  --parchment: #D8D0BC;  /* rules on light */
  --slate:     #6E6B5F;  /* muted text on light */

  --plate-radius: 2px;

  --font-display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-ui: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--cypress);
  background-image:
    radial-gradient(120% 80% at 78% 12%, rgba(46, 115, 112, 0.16), transparent 62%),
    radial-gradient(90% 70% at 8% 92%, rgba(0, 0, 0, 0.34), transparent 60%);
  color: var(--limewash);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* --- Transom ------------------------------------------------------------- */
/* The signature. A cast-iron grille above the door, full width, once only. */

.transom {
  height: 74px;
  width: 100%;
  flex: none;
  background-color: var(--iron);
  border-bottom: 1px solid var(--moss);
  overflow: hidden;
}

.transom svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Frame --------------------------------------------------------------- */

.frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
}

.frame__inner {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .frame__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(3rem, 7vw, 7rem);
  }
}

/* --- Identity ------------------------------------------------------------ */

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--river-lit);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 7.5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: var(--limewash);
}

.identity__rule {
  width: 68px;
  height: 1px;
  margin: 2rem 0;
  background: var(--moss);
  border: 0;
}

.identity__note {
  margin: 0;
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(237, 232, 218, 0.62);
}

/* --- Plate --------------------------------------------------------------- */

.plate {
  background: var(--limewash);
  color: var(--iron);
  border-radius: var(--plate-radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 60px -28px rgba(0, 0, 0, 0.75);
}

.plate__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  color: var(--iron);
}

.plate__hint {
  margin: 0 0 1.75rem;
  font-size: 0.8125rem;
  color: var(--slate);
}

/* --- Fields -------------------------------------------------------------- */

.field {
  margin-bottom: 1.125rem;
}

.field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
}

.field input {
  width: 100%;
  padding: 0.8125rem 0.875rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--iron);
  background: #F6F3EA;
  border: 1px solid var(--parchment);
  border-radius: var(--plate-radius);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input:hover {
  border-color: #C3B99F;
}

.field input:focus {
  outline: none;
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(46, 115, 112, 0.16);
}

/* --- Button -------------------------------------------------------------- */

.enter {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--limewash);
  background: var(--cypress);
  border: 1px solid var(--cypress);
  border-radius: var(--plate-radius);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.enter:hover {
  background: var(--river);
  border-color: var(--river);
}

.enter:focus-visible {
  outline: 2px solid var(--river);
  outline-offset: 2px;
}

/* --- Notice -------------------------------------------------------------- */

.notice {
  margin: 0 0 1.5rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #5C2E22;
  background: #F3E4DC;
  border-left: 2px solid #A8503A;
  border-radius: 0 var(--plate-radius) var(--plate-radius) 0;
}

/* --- Aside links --------------------------------------------------------- */

.plate__foot {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--parchment);
  font-size: 0.8125rem;
  color: var(--slate);
}

a {
  color: var(--river);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--river-lit);
}

a:focus-visible {
  outline: 2px solid var(--river);
  outline-offset: 2px;
  border-radius: 1px;
}

/* --- Sill ---------------------------------------------------------------- */

.sill {
  flex: none;
  padding: 1.25rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid rgba(60, 92, 76, 0.5);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(237, 232, 218, 0.4);
}

/* --- Interior ------------------------------------------------------------ */

.interior {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.interior h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.015em;
}

.interior p {
  margin: 0 0 2rem;
  color: rgba(237, 232, 218, 0.62);
}

.interior__actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* --- Page load ----------------------------------------------------------- */
/* One orchestrated moment, then stillness. */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 620ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }

  .rise--a { animation-delay: 60ms; }
  .rise--b { animation-delay: 200ms; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
