/* Writing section: the log. Shares tokens, type and chart paper with the landing and architecture pages. */
:root {
  --night: #060d19;
  --cream: #efe6d2;
  --paper: #ece4d1;
  --ink: #13233a;
  --ink-soft: #3f4c5e;
  --pencil: #6d6a62;
  --amber: #e8a94a;
  --magenta: #a8326e;
  --line: rgba(19,35,58,.28);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--night); color: var(--cream); line-height: 1.65; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--night); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.06; }
h1 em, h2 em, h3 em { font-weight: 400; }

/* header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; padding: 2.2rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; max-width: none; padding: 0 clamp(2rem, 4vw, 3.5rem); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .01em; }
.wordmark i { font-weight: 400; opacity: .72; }
.wordmark img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(239,230,210,.18), 0 0 14px rgba(232,169,74,.18); }
.site-nav { display: flex; gap: 2rem; align-items: center; font-size: .86rem; }
.site-nav a { text-decoration: none; opacity: .72; transition: opacity .2s; }
.site-nav a:hover, .site-nav a[aria-current] { opacity: 1; }
.site-nav a[aria-current] { box-shadow: 0 1px 0 var(--amber); }
.site-nav .nav-cta { opacity: 1; border: 1px solid rgba(239,230,210,.35); padding: .45rem .95rem; border-radius: 2px; }
.site-nav .nav-cta:hover { border-color: var(--amber); color: var(--amber); }

/* masthead: night, horizon, the light */
@property --sweep { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.mast { --hz: 80%; position: relative; overflow: hidden; background: linear-gradient(#03080f 0%, #0e1f36 var(--hz), #0b192c var(--hz), #040a14 100%); }
.mast::before { content: ''; position: absolute; left: 88%; top: calc(var(--hz) - 32px); width: 300vmax; height: 300vmax; transform: translate(-50%, -50%); background: conic-gradient(from var(--sweep), rgba(232,169,74,.1) 0deg, rgba(232,169,74,.03) 6deg, transparent 11deg, transparent 360deg); animation: sweep 10s linear infinite; pointer-events: none; clip-path: inset(0 0 calc(50% - 32px) 0); }
@keyframes sweep { to { --sweep: 360deg; } }
.mast .sea { position: absolute; left: 0; right: 0; top: var(--hz); bottom: 0; overflow: hidden; }
.mast .sea svg { position: absolute; left: -10%; width: 120%; height: 100%; animation: swell 18s ease-in-out infinite alternate; }
@keyframes swell { to { transform: translateX(4%); } }
.mast .tower { position: absolute; left: 88%; top: var(--hz); width: 9px; height: 30px; transform: translate(-50%, -100%); background: linear-gradient(90deg, #0a1526, #13243b); clip-path: polygon(18% 100%, 30% 0, 70% 0, 82% 100%); }
.mast .lamp { position: absolute; left: 88%; top: calc(var(--hz) - 32px); width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff3dc; box-shadow: 0 0 10px 3px rgba(255,214,150,.75), 0 0 40px 12px rgba(255,214,150,.18); animation: flash 10s linear infinite; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 10px 3px rgba(255,214,150,.75), 0 0 40px 12px rgba(255,214,150,.18); } 4% { box-shadow: 0 0 22px 8px rgba(255,226,180,.95), 0 0 140px 50px rgba(255,214,150,.3); } 9% { box-shadow: 0 0 10px 3px rgba(255,214,150,.75), 0 0 40px 12px rgba(255,214,150,.18); } }
.neatline { position: absolute; inset: 18px; border: 1px solid rgba(239,230,210,.14); pointer-events: none; z-index: 2; }
.neatline::before, .neatline::after { content: ''; position: absolute; }
.neatline::before { left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(90deg, rgba(239,230,210,.28) 0 1px, transparent 1px 60px); }
.neatline::after { top: 0; bottom: 0; left: 0; width: 7px; background: repeating-linear-gradient(180deg, rgba(239,230,210,.28) 0 1px, transparent 1px 60px); }
.neatline span { position: absolute; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: rgba(239,230,210,.42); }
.neatline .bl { bottom: 10px; left: 14px; }
.neatline .br { bottom: 10px; right: 14px; }
.mast-copy { position: relative; z-index: 3; padding-top: clamp(9rem, 20vh, 12rem); padding-bottom: clamp(7rem, 16vh, 10rem); max-width: 50rem; }
.mast .kicker { color: rgba(239,230,210,.6); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .8rem; }
.mast .kicker::before { content: ''; width: 28px; height: 1px; background: var(--amber); }
.mast .kicker a { text-decoration: none; }
.mast .kicker a:hover { color: var(--amber); }
.mast h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); color: var(--cream); }
.mast .dek { margin-top: 1.4rem; max-width: 36rem; font-family: var(--serif); font-style: italic; font-size: 1.32rem; line-height: 1.45; color: rgba(239,230,210,.74); }
.byline { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(239,230,210,.5); }
.byline b { color: rgba(239,230,210,.82); font-weight: 400; }
.byline .rev { color: var(--amber); }
.byline .brg { color: rgba(239,230,210,.62); text-decoration: none; border-bottom: 1px solid rgba(232,169,74,.45); }
.byline .brg:hover { color: var(--amber); }

/* paper */
.paper {
  position: relative; color: var(--ink); background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .1 0 0 0 0 .16 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(19,35,58,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,35,58,.06) 1px, transparent 1px),
    linear-gradient(rgba(19,35,58,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,35,58,.025) 1px, transparent 1px);
  background-size: 240px 240px, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.paper::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; border-top: 1px solid var(--ink); border-bottom: 1px solid rgba(19,35,58,.45); background: repeating-linear-gradient(90deg, var(--ink) 0 60px, transparent 60px 120px); opacity: .85; }
.paper .kicker { color: var(--magenta); }

/* article */
.article { padding-top: clamp(4.5rem, 9vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.prose { max-width: 40rem; margin: 0 auto; font-size: 1.06rem; line-height: 1.78; color: #26354b; }
.prose > * + * { margin-top: 1.25rem; }
.prose > p:first-child { font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.prose h2 { font-size: clamp(1.75rem, 3.2vw, 2.3rem); color: var(--ink); margin-top: 3.2rem; scroll-margin-top: 2rem; }
.prose h3 { font-size: 1.45rem; color: var(--ink); margin-top: 2.4rem; }
.prose h2 + *, .prose h3 + * { margin-top: .9rem; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(168,50,110,.55); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--magenta); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--magenta); }
.prose blockquote { border-left: 1px solid var(--magenta); padding: .2rem 0 .2rem 1.3rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.prose blockquote p + p { margin-top: .8rem; }
.prose code { font-family: var(--mono); font-size: .86em; background: rgba(19,35,58,.07); padding: .08rem .3rem; border-radius: 2px; }
.prose pre { background: #0b1626; color: var(--cream); padding: 1.1rem 1.2rem; border-radius: 2px; overflow-x: auto; font-size: .84rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose hr.star { border: 0; height: 22px; margin: 2.8rem auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-11 -11 22 22'%3E%3Cg stroke='%23a8326e' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M0-10V-6M0 6V10M-10 0H-6M6 0H10M-7-7L-4.5-4.5M7-7L4.5-4.5M-7 7L-4.5 4.5M7 7L4.5 4.5'/%3E%3C/g%3E%3Ccircle r='2.2' fill='%2313233a'/%3E%3C/svg%3E") center / 22px 22px no-repeat; }
.signoff { max-width: 40rem; margin: 3rem auto 0; display: flex; align-items: center; gap: 1rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.signoff::before { content: ''; flex: 1; height: 1px; background: var(--line); }
.signoff::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.after { max-width: 40rem; margin: 3rem auto 0; display: grid; gap: 1rem; }
.entries-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.entries-nav a, .entries-nav span { padding: 1rem 0 .4rem; text-decoration: none; }
.entries-nav .later { text-align: right; }
.entries-nav .k { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.entries-nav .t { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; color: var(--ink); margin-top: .3rem; }
.entries-nav a:hover .t { color: var(--magenta); }
.to-log { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; text-align: center; padding-top: .4rem; }
.to-log:hover { color: var(--magenta); }

/* the log (index) */
.featured { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: end; padding: clamp(4.5rem, 9vw, 6.5rem) 0 3.5rem; border-bottom: 1px solid rgba(19,35,58,.18); }
.featured .kicker { margin-bottom: 1rem; }
.featured h2 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.featured h2 a { text-decoration: none; color: var(--ink); }
.featured h2 a:hover { color: var(--magenta); }
.featured p { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink-soft); }
.featured .read { display: inline-flex; gap: .6rem; margin-top: 1.4rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--magenta); padding-bottom: .2rem; }
.featured .read:hover { color: var(--magenta); }
.log { padding: 3rem 0 clamp(4.5rem, 9vw, 6.5rem); }
.log table { width: 100%; border-collapse: collapse; }
.log caption { caption-side: top; text-align: left; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-soft); padding-bottom: .7rem; }
.log th { font-family: var(--mono); font-weight: 400; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); text-align: left; padding: .5rem .7rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.log td { padding: 1.15rem .7rem; border-bottom: 1px dotted rgba(19,35,58,.3); vertical-align: top; }
.log tr { transition: background .2s; }
.log tbody tr:hover { background: rgba(255,250,238,.5); }
.log td.no { font-family: var(--mono); font-size: .72rem; color: var(--magenta); width: 3rem; padding-top: 1.35rem; }
.log td.dt { font-family: var(--mono); font-size: .7rem; color: var(--pencil); white-space: nowrap; width: 9.5rem; padding-top: 1.35rem; }
.log td.entry a { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--ink); text-decoration: none; }
.log td.entry a:hover { color: var(--magenta); }
.log td.entry .ex { display: block; margin-top: .35rem; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); max-width: 38rem; }
.log td.min { font-family: var(--mono); font-size: .66rem; color: var(--pencil); white-space: nowrap; text-align: right; padding-top: 1.35rem; }

/* closing + footer */
.closing { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 120%, #10233d 0%, var(--night) 60%); text-align: center; padding: clamp(5rem, 10vw, 7rem) 0; }
.closing::before { content: ''; position: absolute; left: 50%; top: 100%; width: 260vmax; height: 260vmax; transform: translate(-50%, -50%); background: conic-gradient(from var(--sweep), rgba(232,169,74,.14) 0deg, rgba(232,169,74,.04) 7deg, transparent 13deg, transparent 360deg); animation: sweep 10s linear infinite; pointer-events: none; }
.closing .wrap { position: relative; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.closing h2 em { color: rgba(239,230,210,.7); }
.closing p { margin: 1.1rem auto 0; max-width: 30rem; color: rgba(239,230,210,.66); }
.cta-row { margin-top: 2rem; display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: .9rem; font-weight: 500; padding: .82rem 1.35rem; border-radius: 2px; transition: background .25s, color .25s, border-color .25s; }
.btn--light { background: var(--cream); color: var(--night); }
.btn--light:hover { background: var(--amber); }
.btn--line { border: 1px solid rgba(239,230,210,.35); color: var(--cream); }
.btn--line:hover { border-color: var(--amber); color: var(--amber); }
footer { background: var(--night); border-top: 1px solid rgba(239,230,210,.1); padding: 2.4rem 0 2.8rem; font-size: .8rem; color: rgba(239,230,210,.48); }
footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: baseline; }
footer .coords { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; }
footer nav { display: flex; gap: 1.6rem; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--cream); }

@media (max-width: 900px) {
  .site-nav a:not(.nav-cta):not([aria-current]) { display: none; }
  .featured { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .wrap { padding: 0 1.3rem; }
  .article { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .site-header { padding: 1.5rem 0; }
  .site-header .wrap { padding: 0 1.4rem; }
  .wordmark { font-size: 1.25rem; white-space: nowrap; }
  .site-nav { gap: 1rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { white-space: nowrap; font-size: .78rem; padding: .4rem .75rem; }
  .mast { --hz: 90%; }
  .mast-copy { padding-top: 7.5rem; padding-bottom: 6rem; }
  .neatline .br { display: none; }
  .log td.dt, .log th.dt, .log td.min, .log th.min { display: none; }
  .log td.no { width: 2.2rem; }
  .entries-nav { grid-template-columns: 1fr; }
  .entries-nav .later { text-align: left; border-top: 1px dotted var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mast::before, .closing::before, .mast .lamp, .mast .sea svg { animation: none; }
  .mast::before, .closing::before { --sweep: 200deg; }
}
