/* Coastal Writers — draft stylesheet
   Palette: newsprint cream, ink black, banner red, harbor slate.
   Type: Playfair Display (headlines) + Inter (body). */

:root {
  --cream: #f6f1e6;
  --cream-2: #efe8d7;
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --quiet: #6b6b6b;
  --rule: #d6cdb5;
  --red: #8a1c1c;
  --red-deep: #6b1414;
  --slate: #1f2e3a;
  --slate-2: #2c3e4d;
  --link: #8a1c1c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(246, 241, 230, 0.92);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.15rem;
}

.brand-mark.small {
  font-size: 1.4rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.primary-nav a {
  color: var(--ink);
  font-weight: 500;
}

.primary-nav a:hover {
  color: var(--red);
  text-decoration: none;
}

.nav-cta {
  background: var(--red);
  color: var(--cream) !important;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  background: var(--red-deep);
  text-decoration: none;
}

@media (max-width: 760px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .primary-nav { gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(138, 28, 28, 0.06), transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(31, 46, 58, 0.05), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  text-align: left;
}

.kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.hero-lede {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 38rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 0 0 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hero-meta > div {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--quiet);
  margin-bottom: 0.25rem;
}

.meta-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--red-deep);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}

/* ---------- Generic section ---------- */

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
}

.section-cream { background: var(--cream-2); }
.section-feature { background: var(--cream-2); }
.section-dark { background: var(--slate); color: var(--cream); border-bottom: none; }
.section-dark a { color: var(--cream); }

.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 700;
  margin: 0 0 1rem;
}
.section-eyebrow.light { color: #e8b5b5; }

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  max-width: 32ch;
}
.section-title.light { color: var(--cream); }

.section-intro {
  font-size: 1.1rem;
  max-width: 44rem;
  color: var(--ink-soft);
  margin: 0 0 3rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
.lead.light { color: rgba(246, 241, 230, 0.85); }

.footnote {
  margin-top: 2.5rem;
  color: var(--quiet);
  font-style: italic;
  font-size: 0.95rem;
}

/* ---------- Two-column layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.col-body p { margin: 0 0 1.1rem; }

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Workshop grid ---------- */

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.workshop-card {
  background: rgba(246, 241, 230, 0.06);
  border: 1px solid rgba(246, 241, 230, 0.18);
  padding: 1.75rem;
  border-radius: 3px;
}

.workshop-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  color: var(--cream);
}

.workshop-card p {
  margin: 0;
  color: rgba(246, 241, 230, 0.8);
  font-size: 0.98rem;
}

/* ---------- Faculty grid ---------- */

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.faculty-placeholder {
  text-align: center;
}

.ph-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(45deg, var(--cream-2) 0 8px, var(--cream) 8px 16px);
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.ph-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  margin: 0;
  font-size: 1.05rem;
}

.ph-bio {
  color: var(--quiet);
  font-size: 0.9rem;
  margin: 0.15rem 0 0;
  font-style: italic;
}

/* ---------- Schedule ---------- */

.schedule {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  counter-reset: day;
}

.schedule li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.schedule li:last-child {
  border-bottom: 1px solid var(--rule);
}

.day-label {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--red);
  letter-spacing: 0.02em;
  padding-top: 0.15rem;
}

.day-body h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.day-body p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .schedule li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- Venue list ---------- */

.venue-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.venue-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--rule);
}

.venue-list li:last-child { border-bottom: none; }

.venue-list strong {
  display: inline-block;
  min-width: 9rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* ---------- Portland grid ---------- */

.portland-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.portland-grid h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--red);
}

.portland-grid p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Apply ---------- */

.apply-inner {
  max-width: 880px;
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(246, 241, 230, 0.2);
  border-bottom: 1px solid rgba(246, 241, 230, 0.2);
}

.apply-grid h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--cream);
}

.apply-grid p {
  margin: 0;
  color: rgba(246, 241, 230, 0.8);
  font-size: 0.98rem;
}

.signup {
  margin-top: 2rem;
}

.signup label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(246, 241, 230, 0.7);
  margin-bottom: 0.75rem;
}

.signup-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1 1 280px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: rgba(246, 241, 230, 0.08);
  border: 1px solid rgba(246, 241, 230, 0.25);
  color: var(--cream);
  border-radius: 2px;
  font-family: inherit;
}

.signup input[type="email"]::placeholder {
  color: rgba(246, 241, 230, 0.45);
}

.signup input[type="email"]:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.fine {
  margin-top: 0.75rem;
  color: rgba(246, 241, 230, 0.55);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246, 241, 230, 0.15);
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-tagline {
  color: rgba(246, 241, 230, 0.6);
  font-style: italic;
  margin-top: 0.5rem;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(246, 241, 230, 0.6);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--cream);
}

.footer-rule {
  padding-top: 1.5rem;
  color: rgba(246, 241, 230, 0.4);
  font-size: 0.85rem;
}
