/* The Lease — brand site
   Palette: oil black #0B0D10 | night sky #1C2433 | rust #B45A2A | amber #D4923A | cream #E5DCC8
*/

:root {
  --oil-black: #0B0D10;
  --night-sky: #1C2433;
  --rust: #B45A2A;
  --amber: #D4923A;
  --cream: #E5DCC8;
  --mud: #3D3228;
  --steel: #6B6E73;
  --white: #FFFFFF;
  --font-display: "Libre Baskerville", Georgia, "Liberation Serif", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 1100px;
  --radius: 6px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--oil-black);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cream);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--oil-black);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(180, 90, 42, 0.35);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(212, 146, 58, 0.35);
}

.brand-mark span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--cream);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
}

.nav a:hover {
  color: var(--amber);
  opacity: 1;
}

/* —— Layout —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--night-sky);
}

.section-head {
  margin: 0 0 1.75rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.6rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.05rem;
  color: rgba(229, 220, 200, 0.88);
  max-width: 38rem;
}

.rule {
  width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--rust), var(--amber));
  border: 0;
  margin: 1rem 0 1.5rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 40%, rgba(180, 90, 42, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(212, 146, 58, 0.08), transparent 55%),
    linear-gradient(180deg, var(--oil-black) 0%, #0e1218 50%, var(--night-sky) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(212, 146, 58, 0.4);
}

.subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 0.85rem;
  opacity: 0.92;
}

.byline {
  color: var(--steel);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.byline strong {
  color: var(--cream);
  font-weight: 600;
}

.hero-copy {
  color: rgba(229, 220, 200, 0.9);
  max-width: 32rem;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--rust);
  color: var(--cream);
  border-color: var(--rust);
}

.btn-primary:hover {
  background: #c46832;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(229, 220, 200, 0.35);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn[aria-disabled="true"],
.btn:disabled {
  background: #2a303a;
  color: var(--steel);
  border-color: #3a414d;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.85;
}

.cover-frame {
  justify-self: end;
  width: min(100%, 340px);
  position: relative;
}

.cover-frame::after {
  content: "";
  position: absolute;
  inset: 8% -8% -8% 8%;
  background: radial-gradient(circle at 40% 60%, rgba(212, 146, 58, 0.22), transparent 65%);
  z-index: -1;
  filter: blur(12px);
}

.cover-frame img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 220, 200, 0.08);
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.about-prose p {
  margin: 0 0 1.1rem;
  color: rgba(229, 220, 200, 0.9);
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.pull-quote {
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  border-left: 3px solid var(--rust);
  background: rgba(11, 13, 16, 0.45);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 0.75rem;
  color: var(--cream);
}

.pull-quote footer {
  font-size: 0.85rem;
  color: var(--steel);
  font-style: normal;
}

/* —— Formats —— */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: rgba(11, 13, 16, 0.55);
  border: 1px solid rgba(229, 220, 200, 0.1);
  border-radius: 8px;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card .format-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.card .price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--cream);
  margin: 0;
}

.card .price span {
  font-size: 0.95rem;
  color: var(--steel);
  font-family: var(--font-body);
  font-weight: 400;
}

.card p {
  margin: 0;
  color: rgba(229, 220, 200, 0.8);
  font-size: 0.95rem;
  flex: 1;
}

.card .note {
  font-size: 0.8rem;
  color: var(--steel);
}

/* —— Author —— */
.author-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: start;
  max-width: 48rem;
}

.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(180, 90, 42, 0.5);
}

.author-block p {
  margin: 0 0 0.85rem;
  color: rgba(229, 220, 200, 0.9);
}

.author-block p:last-child {
  margin-bottom: 0;
}

/* —— Signup —— */
.signup-panel {
  max-width: 560px;
  background: rgba(11, 13, 16, 0.5);
  border: 1px solid rgba(212, 146, 58, 0.28);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
}

.signup-panel p {
  margin: 0 0 1.25rem;
  color: rgba(229, 220, 200, 0.88);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 220, 200, 0.2);
  background: var(--oil-black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--steel);
  margin: 0.85rem 0 0 !important;
}

#signup-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--amber);
  min-height: 1.2em;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid rgba(180, 90, 42, 0.3);
  padding: 2rem 0 2.5rem;
  background: var(--oil-black);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--steel);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--steel);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--amber);
}

/* —— Amazon placeholder anchor —— */
#amazon {
  scroll-margin-top: 5rem;
}

.amazon-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(180, 90, 42, 0.12);
  border: 1px solid rgba(180, 90, 42, 0.35);
  color: rgba(229, 220, 200, 0.85);
  font-size: 0.9rem;
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .cover-frame {
    justify-self: center;
    order: -1;
    width: min(100%, 280px);
  }

  .hero {
    padding-top: 2rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .author-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav {
    display: none;
  }

  .header-inner {
    justify-content: center;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
