/* The Ghost Prelude — palette taken from Sarah's cover painting of Valldemossa */

:root {
  --paper:      #faf6ec;
  --paper-alt:  #f2ebdb;
  --ink:        #2b2a26;
  --ink-muted:  #6b6659;
  --rule:       #ded3bd;

  --terracotta: #a85a3c;
  --ochre:      #c08f4d;
  --olive:      #74835c;
  --deep-blue:  #3b4473;

  --measure: 34rem;
  --gutter: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--deep-blue);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: 1.3rem; color: var(--ink); margin-top: 2em; }

p { margin: 0 0 1.2em; }

a { color: var(--terracotta); text-underline-offset: 0.18em; }
a:hover { color: var(--deep-blue); }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose { max-width: var(--measure); }

main { padding-bottom: 5rem; }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0 1.4rem;
  margin-bottom: 3rem;
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.masthead__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-blue);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
}

nav a {
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--terracotta);
  border-bottom: 1px solid currentColor;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.hero__cover {
  display: block;
  width: 213px;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 18px rgba(59, 68, 115, 0.14);
}

.hero h1 { margin-bottom: 0.3em; }

.hero__byline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 1.4em;
}

.lede { font-size: 1.28rem; line-height: 1.6; }

@media (max-width: 38rem) {
  .hero { grid-template-columns: 1fr; gap: 1.8rem; justify-items: center; text-align: center; }
  .hero__text { text-align: left; }
}

/* ---------- quotes ---------- */

.praise { margin-top: 3rem; }

blockquote {
  margin: 0 0 2rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--ochre);
  max-width: var(--measure);
}

blockquote p { font-style: italic; margin-bottom: 0.4em; }

blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* ---------- signup ---------- */

.signup {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  padding: 2rem 1.8rem;
  margin: 3.5rem 0 0;
}

.signup h2 { margin-top: 0; }
.signup p { max-width: var(--measure); }

.signup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 1rem;
}

.signup__form label {
  flex: 1 1 16rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

input[type="email"] {
  font: inherit;
  font-size: 1.05rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}

input[type="email"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--deep-blue);
  outline-offset: 2px;
}

button {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.6rem;
  align-self: flex-end;
  background: var(--deep-blue);
  color: var(--paper);
  border: 1px solid var(--deep-blue);
  cursor: pointer;
}

button:hover { background: var(--terracotta); border-color: var(--terracotta); }

.consent {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: var(--measure);
  margin: 0;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 1.6rem 0 3rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.footer p { margin: 0 0 0.4em; }
.footer a { color: var(--ink-muted); }

.cover-credit { font-size: 0.92rem; color: var(--ink-muted); }
