:root {
  color-scheme: dark;
  --night: #12151e;
  --rain: #202d43;
  --paper: #eee9df;
  --ink: #242331;
  --muted: #696575;
  --line: #c7bfaf;
  --blue: #3c61a8;
  --violet: #79568d;
  --flower: #b34272;
  --measure: 59rem;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    repeating-linear-gradient(102deg, transparent 0 42px, rgb(144 173 220 / .035) 43px, transparent 44px 93px),
    radial-gradient(ellipse 50% 32% at 18% 2%, #273852 0%, transparent 72%),
    var(--night);
  color: var(--paper);
  font: 18px/1.55 Georgia, "Times New Roman", serif;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .17em; }
a:hover { color: var(--flower); }

main { width: min(var(--measure), calc(100% - 2.5rem)); margin: 0 auto; padding: 2.1rem 0 4rem; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 4.5rem; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.wordmark { color: var(--paper); text-decoration: none; font-size: .92rem; letter-spacing: .04em; }
.wordmark::before { content: "✦ "; color: #ca9bda; }
nav { display: flex; gap: 1.15rem; font-size: .8rem; }
nav a { color: #c5c0c9; }
nav a[aria-current="page"] { color: #f1d5e3; text-decoration: none; }

.sheet { position: relative; max-width: 48rem; padding: clamp(1.5rem, 6vw, 4rem); background: var(--paper); color: var(--ink); box-shadow: 11px 13px 0 rgb(0 0 0 / .19); }
.sheet::after { content: ""; position: absolute; top: .9rem; right: .9rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--flower); box-shadow: -1.15rem .35rem 0 #d5ac49, -.45rem 1.1rem 0 var(--violet); }
.kicker { margin: 0 0 2.2rem; color: var(--violet); font: .75rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 30rem; margin: 0; font-size: clamp(2.6rem, 7vw, 5rem); line-height: .97; font-weight: normal; letter-spacing: -.055em; }
.intro { max-width: 32rem; margin: 2.2rem 0 0; font-size: 1.22rem; }
.intro strong { color: var(--blue); font-weight: normal; }

.field-notes { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3.5rem; max-width: 48rem; margin: 4rem 0 0 3.2rem; color: #e6e1e6; }
.field-notes h2 { margin: 0; color: #e4bbd0; font: .75rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.field-notes p { margin: 0 0 1.2rem; }
.field-notes p:last-child { margin-bottom: 0; }
.field-notes .small { color: #bdb7c1; font-size: .93rem; }

.now-title { margin: 0 0 2.5rem; font-size: clamp(2.8rem, 8vw, 5rem); }
.entry { max-width: 36rem; }
.entry p { margin: 0 0 1.25rem; }
.entry time { display: block; margin-bottom: 1.3rem; color: var(--muted); font: .76rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }

footer { max-width: 48rem; margin: 4rem 0 0 3.2rem; color: #bdb7c1; font: .76rem/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace; }
footer span { color: #e3abc4; }

.moon-sheet { max-width: 48rem; }
.moon-title { max-width: 34rem; font-size: clamp(2.6rem, 6vw, 4.5rem); }
.moon-form { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin-top: 2.5rem; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.moon-form label { width: 100%; color: var(--violet); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.moon-form input, .moon-form button { min-height: 2.65rem; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: .9rem ui-monospace, "SFMono-Regular", Menlo, monospace; }
.moon-form input { padding: 0 .7rem; }
.moon-form button { padding: 0 .9rem; cursor: pointer; }
.moon-form button:hover { background: var(--ink); color: var(--paper); }
.moon-result { display: block; min-height: 6rem; margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.moon-result strong { font-size: 1.4rem; font-weight: normal; }
.moon-result span { color: var(--muted); }
.moon-result .moon-glyph { margin-right: .7rem; color: var(--ink); font-size: 2rem; vertical-align: middle; }

@media (max-width: 43rem) {
  main { width: min(var(--measure), calc(100% - 1.5rem)); padding-top: 1.4rem; }
  header { margin-bottom: 2.5rem; }
  .field-notes { grid-template-columns: 1fr; gap: 1rem; margin-left: 0; }
  footer { margin-left: 0; }
}
