:root {
  color-scheme: dark;
  --midnight: #0c1720;
  --forest: #112821;
  --forest-dark: #0f201c;
  --cream: #f8eedb;
  --mint: #cbd9cd;
  --gold: #e1c78a;
  --gold-line: #dcb97845;
  --paper: #f1e7d1;
  --ink: #20312a;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--forest-dark);
  color: var(--cream);
  font: 1rem/1.65 var(--sans);
}
a { color: inherit; text-underline-offset: .26em; }
a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(1220px, calc(100% - 96px)); margin-inline: auto; }
.bar, .actions, .entry-head { display: flex; align-items: center; gap: 1rem; }
.bar, .entry-head { justify-content: space-between; }
.top {
  background: var(--midnight);
  border-bottom: 1px solid var(--gold-line);
}
.top .bar, footer .bar { min-height: 72px; }
.brand {
  color: var(--cream);
  font: 1.43rem var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  color: var(--gold);
  font-size: .83rem;
  margin-right: .65rem;
  vertical-align: .1em;
}
nav a, footer a { color: var(--gold); text-decoration: none; font-size: .9rem; }
nav a:hover, footer a:hover { text-decoration: underline; }
.skip {
  position: absolute;
  top: -100px;
  left: .6rem;
  z-index: 3;
  padding: .6rem;
  color: var(--ink);
  background: var(--paper);
}
.skip:focus { top: .6rem; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
  background: var(--midnight);
}
.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(490px, 49vw, 650px);
  padding-block: 4rem;
}
.hero-copy { position: relative; z-index: 1; width: min(44%, 520px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: .58rem;
  height: .58rem;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  content: '';
}
h1, h2, h3 { margin: 0; font: 400 1.5rem/1.06 var(--serif); }
h1 { font-size: clamp(4.5rem, 8.8vw, 8.7rem); letter-spacing: -.065em; line-height: .97; }
h2 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); letter-spacing: -.05em; }
.lead {
  max-width: 35ch;
  margin: 1.45rem 0 1.8rem;
  color: var(--mint);
  font-size: clamp(1rem, 1.25vw, 1.135rem);
}
.art {
  position: absolute;
  inset: 0 max(-8vw, -122px) 0 33%;
  margin: 0;
  background: radial-gradient(ellipse at 72% 54%, #294a41, var(--midnight) 74%);
}
.art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--midnight) 1%, #0c1720e3 9%, #0c172055 26%, transparent 43%),
              linear-gradient(0deg, #0c1720a0, transparent 19%);
  content: '';
}

.actions { flex-wrap: wrap; }
.button, .outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 650;
  text-decoration: none;
}
.button { background: var(--gold); color: #1c241b; }
.button:hover { background: #f5dba0; }
.outline { background: transparent; border-color: var(--gold-line); color: var(--gold); }
.outline:hover:enabled { border-color: currentColor; }
.outline:disabled { opacity: .52; cursor: default; }

.journal {
  background: radial-gradient(ellipse at 17% 0%, #1b362b, transparent 59%), var(--forest-dark);
}
.section { padding-block: 4.5rem 5.5rem; }
.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 350px);
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 1.7rem;
  padding-bottom: 1.65rem;
  border-bottom: 1px solid var(--gold-line);
}
.section-head p { margin: 0; color: var(--mint); }
.journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: 1.35rem;
}
.journal form, .entries {
  border: 1px solid var(--gold-line);
  border-radius: 7px;
  padding: clamp(1rem, 3vw, 1.95rem);
}
.journal form {
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
}
.journal form .button { color: var(--cream); background: #234338; }
.journal form .button:hover { background: #315547; }
.journal form .outline { color: #234338; border-color: #31554765; }
.journal form :focus-visible { outline-color: #765529; }
.entries { background: #10241e; }
.entry-head h3 { color: var(--cream); }
label { display: block; font-weight: 650; font-size: .92rem; }
select, textarea {
  display: block;
  width: 100%;
  margin: .4rem 0 1.05rem;
  padding: .64rem .75rem;
  color: var(--ink);
  background: #fff8e9;
  border: 1px solid #6c6a536f;
  border-radius: 4px;
}
select {
  appearance: none;
  padding-right: 2.5rem;
  background: linear-gradient(45deg, transparent 50%, #294237 51%) right 1.1rem center / .34rem .34rem no-repeat,
              linear-gradient(135deg, #294237 50%, transparent 51%) right .77rem center / .34rem .34rem no-repeat,
              #fff8e9;
}
textarea { resize: vertical; min-height: 110px; }
.hint { margin-bottom: 0; color: var(--mint); font-size: .9rem; }
.journal form .hint { color: #4a574d; }
#feedback:empty { display: none; }
.entry {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-line);
}
.entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
.entry time { color: var(--mint); font-size: .88rem; }
.entry button { padding: .35rem .65rem; }
footer {
  border-top: 1px solid var(--gold-line);
  background: var(--midnight);
}

@media (max-width: 810px) {
  .wrap { width: calc(100% - 40px); }
  .intro { min-height: 0; grid-template-columns: 1fr; gap: 0; padding-block: 0 2.75rem; }
  .hero-copy { width: 100%; }
  .art {
    position: relative;
    inset: auto;
    grid-row: 1;
    height: clamp(250px, 62vw, 425px);
    margin-inline: -20px;
  }
  .art::after {
    background: linear-gradient(0deg, var(--midnight) 0%, #0c17204d 18%, transparent 40%);
  }
  .hero-copy .eyebrow { margin-top: .3rem; }
  .lead { margin-block: 1rem 1.35rem; }
  .section { padding-block: 3.25rem 3.5rem; }
  .section-head, .journal-grid { grid-template-columns: 1fr; }
  .top .bar, footer .bar { min-height: 62px; }
}
@media (max-width: 360px) {
  h1 { font-size: 3.8rem; }
  .entry-head { gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
