/*
  DRAX_EOFSNEM — Field Notes
  A monochrome dreamscape. Tweak the variables first; the ASCII scene lives in world.txt.
*/
:root {
  --paper: #d8d1c2;
  --paper-light: #e6dfd1;
  --stone: #aaa397;
  --mid: #5b5954;
  --ink: #171714;
  --night: #10100f;
  --night-soft: #242421;
  --line-light: rgba(28, 27, 24, .36);
  --line-dark: rgba(234, 229, 216, .35);
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: "Courier New", Courier, monospace;
  --scroll-mood: 0;
  --pointer-x: 0px;
  --pointer-y: 0px;
  --page-width: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(to bottom, var(--paper-light) 0%, var(--paper) 19%, #b1aa9c 34%, #76736b 51%, #343430 69%, #111110 88%, #080808 100%);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  min-width: 300px;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 5%, rgba(255,255,255,.34), transparent 42%),
              radial-gradient(ellipse at 50% 75%, transparent 12%, rgba(0,0,0,.19) 100%);
}
button, input { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px dashed currentColor; outline-offset: 5px; }
::selection { color: var(--paper-light); background: #33332e; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); padding: 8px 12px; background: var(--paper-light); color: #111; }
.skip-link:focus { transform: translateY(0); }
.lens-grain, .vignette { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.lens-grain {
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.vignette { box-shadow: inset 0 0 9vw 2vw rgba(0,0,0,.28); opacity: .72; }
body.lens-off .lens-grain { opacity: .035; }
body.lens-off .vignette { opacity: .22; box-shadow: inset 0 0 4vw rgba(0,0,0,.14); }
#cursor-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30; max-width: 1600px; margin: auto;
  padding: 25px clamp(18px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 22px;
  border-bottom: 1px dashed var(--line-light); font-size: 11px; letter-spacing: .06em;
}
.wordmark { text-decoration: none; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; font-weight: 700; }
.wordmark small { grid-column: 2; opacity: .65; font-size: 10px; font-weight: 400; }
.prompt-mark { font-size: 17px; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 3vw, 35px); }
.main-nav a { text-decoration: none; padding: 5px 0; border-bottom: 1px solid transparent; letter-spacing: .1em; }
.main-nav a:hover { border-color: currentColor; }
.lens-toggle { border: 1px solid currentColor; background: transparent; padding: 7px 9px; white-space: nowrap; cursor: pointer; font-size: 10px; letter-spacing: .08em; }
.lens-toggle:hover { color: var(--paper-light); background: var(--ink); }
.region { position: relative; isolation: isolate; padding: 100px max(20px, calc((100% - var(--page-width)) / 2)) 90px; overflow: hidden; }
.region-day { min-height: 1050px; padding-top: 120px; color: #201f1b; }
.region-twilight { min-height: 1030px; color: #24231f; padding-top: 95px; padding-bottom: 120px; }
.region-dusk { min-height: 1300px; color: #ddd7ca; padding-top: 100px; padding-bottom: 110px; }
.hero { max-width: 920px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.ascii-art { font-family: var(--mono); font-weight: 400; line-height: 1.15; white-space: pre; tab-size: 2; }
.ascii-sun { font-size: 14px; line-height: 1.15; margin: -18px auto 18px; display: inline-block; opacity: .9; }
.eyebrow, .micro-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .72; }
.hero .eyebrow { margin: 8px 0 5px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(25px, 5.1vw, 59px); letter-spacing: .11em; line-height: 1.18; font-weight: 400; margin: 10px 0 15px; text-shadow: 0 1px rgba(255,255,255,.35); }
.title-rule { font-size: .45em; vertical-align: middle; letter-spacing: 0; opacity: .7; white-space: nowrap; }
.subtitle { letter-spacing: clamp(.12em, .6vw, .36em); font-size: clamp(10px, 1.4vw, 13px); margin: 0 auto 11px; }
.intro-line { font-size: 11px; opacity: .67; letter-spacing: .08em; }
.landscape-wrap { position: relative; z-index: 0; max-width: 1100px; margin: 20px auto 0; height: 190px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; }
.landscape { font-size: clamp(7px, 1vw, 12px); line-height: 1.18; margin: 0; opacity: .42; transform: translateX(var(--pointer-x)) perspective(700px) rotateX(2deg); text-shadow: 0 0 1px rgba(28,27,24,.3); transition: transform .35s ease; }
.portal-map { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(10px, 2.5vw, 34px); max-width: 1030px; margin: -15px auto 15px; align-items: end; }
.portal {
  --portal-ink: #201f1b;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  min-width: 0; min-height: 255px; padding: 12px 7px 17px; color: var(--portal-ink); text-decoration: none;
  border: 1px solid transparent; border-bottom-color: var(--line-light); transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.portal:hover, .portal:focus-visible { transform: translateY(-9px); background: rgba(255,255,255,.21); border-color: rgba(30,29,25,.44); }
.portal-art { font-size: clamp(11px, 1.5vw, 17px); line-height: 1.06; margin: 0 0 18px; min-height: 125px; display: flex; align-items: center; white-space: pre; text-shadow: 0 0 8px rgba(255,255,255,.4); }
.portal-label { font-size: clamp(10px, 1.15vw, 13px); letter-spacing: .13em; font-weight: 700; border-bottom: 1px dashed currentColor; padding: 4px 1px 7px; }
.portal-sub { display: block; font-size: 9px; letter-spacing: .025em; opacity: .7; padding-top: 7px; }
.portal-github .portal-art { font-weight: 700; }
.portal-youtube .portal-art { transform: rotate(-1deg); }
.portal-linkedin .portal-art { transform: rotate(1deg); }
.portal-cv .portal-art { letter-spacing: .015em; }
.margin-note { position: absolute; z-index: 2; display: grid; gap: 1px; max-width: 155px; padding: 10px 12px; border: 1px dashed var(--line-light); font-size: 10px; line-height: 1.6; opacity: .83; background: rgba(240,235,224,.13); }
.note-heading { font-size: 8px; letter-spacing: .15em; opacity: .65; margin-bottom: 4px; }
.note-left { left: max(18px, calc((100% - var(--page-width)) / 2 - 2px)); top: 610px; transform: rotate(-2deg); }
.note-right { right: max(18px, calc((100% - var(--page-width)) / 2 - 2px)); top: 520px; transform: rotate(2deg); }
.tiny-heart { font-size: 12px; }
.descent-prompt { position: relative; z-index: 2; max-width: 460px; text-align: center; margin: 35px auto 0; }
.eye { font-size: 10px; line-height: 1.02; margin: 0 auto 8px; display: block; white-space: pre; transition: opacity .4s ease, transform .4s ease; }
#eye-caption { font-size: 9px; letter-spacing: .15em; opacity: .61; margin: 0 0 6px; }
.scroll-cue { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; flex-direction: column; font-size: 10px; letter-spacing: .09em; border-bottom: 1px dashed currentColor; padding: 8px 15px; }
.scroll-cue span:last-child { font-size: 20px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.section-heading { max-width: 780px; margin: 0 auto 30px; text-align: center; position: relative; z-index: 2; }
.section-heading h2 { font-weight: 400; font-size: clamp(24px, 3.6vw, 38px); letter-spacing: .02em; margin: 0 0 10px; }
.section-deck { max-width: 560px; margin: 0 auto; opacity: .75; font-size: 12px; }
.forest-art { font-size: clamp(7px, 1.25vw, 13px); line-height: 1.15; text-align: center; margin: 5px auto 32px; opacity: .54; transform: translateX(calc(var(--pointer-x) * -.6)); transition: transform .4s ease; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(230px, .8fr); gap: 25px; max-width: 900px; margin: 0 auto 50px; position: relative; z-index: 2; }
.paper-note, .coordinates { border: 1px solid rgba(30,29,25,.42); padding: clamp(18px, 3vw, 30px); background: rgba(227,221,209,.45); box-shadow: 4px 5px 0 rgba(32,31,26,.06); }
.paper-note p:not(.micro-label) { max-width: 64ch; }
.paper-note .micro-label, .coordinates .micro-label { margin-bottom: 17px; font-weight: 700; }
.signature { font-size: 10px; opacity: .65; margin: 22px 0 0; }
.coordinates p:not(.micro-label) { margin: 0; padding: 9px 0; border-top: 1px dashed rgba(30,29,25,.25); display: flex; gap: 12px; justify-content: space-between; font-size: 9px; }
.coordinates p span { opacity: .58; }
.coordinates strong { text-align: right; letter-spacing: .04em; font-weight: 500; }
.creature-field { max-width: 850px; margin: 10px auto 0; padding: 22px 14px 12px; display: flex; justify-content: space-around; align-items: flex-end; gap: 20px; position: relative; border-top: 1px dashed rgba(30,29,25,.3); border-bottom: 1px dashed rgba(30,29,25,.3); }
.creature-instruction { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #a8a194; padding: 0 10px; white-space: nowrap; font-size: 8px; }
.creature { appearance: none; color: inherit; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 1; padding: 12px 8px; border: 1px solid transparent; background: transparent; cursor: pointer; min-width: 0; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.creature:hover, .creature:focus-visible { transform: translateY(-6px) rotate(-1deg); background: rgba(255,255,255,.22); border-color: rgba(30,29,25,.32); }
.creature-art { white-space: pre; font-size: clamp(12px, 2vw, 18px); line-height: 1.08; margin: 0; }
.creature-fairy .creature-art { animation: floaty 3.5s ease-in-out infinite; }
.creature-name { font-size: 9px; text-align: center; opacity: .69; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.found-counter { text-align: center; margin: 16px auto 8px; font-size: 10px; letter-spacing: .09em; }
.found-counter span { opacity: .6; }
.soft-note { text-align: center; font-size: 10px; opacity: .68; margin-bottom: 0; }
.night-sky { text-align: center; margin: 0 auto 55px; opacity: .45; font-size: clamp(8px, 1.3vw, 13px); line-height: 1.15; transform: translateX(var(--pointer-x)); transition: transform .5s ease; }
.section-heading-night { color: #e0dacc; }
.section-heading-night .eyebrow { opacity: .57; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; max-width: 1000px; margin: 42px auto 65px; position: relative; z-index: 2; }
.project-card { text-decoration: none; display: flex; flex-direction: column; min-height: 225px; border: 1px solid var(--line-dark); padding: 19px; background: rgba(255,255,255,.025); transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-5px); border-color: rgba(236,230,215,.82); background: rgba(255,255,255,.065); }
.project-index { font-size: 9px; opacity: .58; letter-spacing: .13em; }
.project-title { font-size: 19px; margin: 22px 0 9px; }
.project-copy { font-size: 11px; line-height: 1.7; opacity: .76; flex: 1; }
.project-action { font-size: 9px; letter-spacing: .08em; border-top: 1px dashed var(--line-dark); padding-top: 12px; margin-top: 20px; }
.terminal-panel { max-width: 850px; margin: 0 auto 100px; border: 1px solid rgba(230,225,213,.55); background: rgba(0,0,0,.22); box-shadow: 0 15px 60px rgba(0,0,0,.1); position: relative; z-index: 2; }
.terminal-head { display: flex; justify-content: space-between; padding: 10px 15px; border-bottom: 1px dashed var(--line-dark); font-size: 9px; letter-spacing: .1em; }
.terminal-output { min-height: 100px; max-height: 250px; overflow: auto; padding: 15px; margin: 0; font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 15px; border-top: 1px dashed var(--line-dark); font-size: 10px; }
.terminal-form label { opacity: .74; }
.terminal-form input { flex: 1; min-width: 150px; color: #f0eadc; background: transparent; border: 0; border-bottom: 1px solid rgba(230,225,213,.36); padding: 5px; outline-offset: 2px; }
.terminal-form input::placeholder { color: rgba(230,225,213,.45); }
.terminal-form button { color: #e5dfd1; border: 1px solid var(--line-dark); background: transparent; padding: 5px 10px; cursor: pointer; font-size: 9px; }
.terminal-form button:hover { color: #111; background: #e5dfd1; }
.return-point { text-align: center; font-size: 9px; letter-spacing: .16em; }
.return-point .eye { margin-bottom: 12px; }
.return-link { display: inline-block; margin-top: 14px; border: 1px dashed var(--line-dark); padding: 9px 14px; text-decoration: none; }
.return-link:hover { color: #121210; background: #e3ddcf; }
.site-footer { color: #d8d1c2; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px clamp(18px, 5vw, 72px); border-top: 1px dashed rgba(230,225,213,.23); background: #080808; font-size: 9px; letter-spacing: .07em; }
.site-footer a { text-decoration: none; border-bottom: 1px dashed currentColor; }
.toast { position: fixed; z-index: 80; bottom: 24px; left: 50%; transform: translateX(-50%); width: min(450px, calc(100vw - 28px)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 15px; color: #e8e1d3; background: rgba(18,18,17,.96); border: 1px solid rgba(232,225,211,.7); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.toast[hidden] { display: none; }
.toast-symbol { font-size: 22px; }
.toast p { margin: 0; font-size: 12px; }
.toast button { color: inherit; background: transparent; border: 0; font-size: 19px; cursor: pointer; }
body[data-mood="night"] .lens-grain { opacity: .2; }
body[data-mood="night"] .vignette { opacity: .88; }
body[data-mood="night"] .topbar { color: #e1dbce; border-color: var(--line-dark); }
body[data-mood="night"] .lens-toggle:hover { color: #111; background: #e4dece; }
body[data-mood="night"] .wordmark { text-shadow: 0 0 8px rgba(255,255,255,.15); }
body.lens-off .landscape, body.lens-off .forest-art, body.lens-off .night-sky { transform: none; }
@media (max-width: 760px) {
  .topbar { padding: 15px 18px; flex-wrap: wrap; gap: 10px 15px; }
  .wordmark { flex: 1; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; font-size: 10px; }
  .lens-toggle { font-size: 9px; }
  .region { padding-left: 18px; padding-right: 18px; }
  .region-day { padding-top: 145px; min-height: 1000px; }
  .portal-map { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 2px; max-width: 500px; }
  .portal { min-height: 208px; }
  .portal-art { min-height: 105px; font-size: 14px; margin-bottom: 9px; }
  .portal-label { font-size: 11px; }
  .portal-sub { font-size: 9px; }
  .landscape-wrap { height: 120px; margin-top: 10px; }
  .landscape { font-size: 7px; }
  .note-left { top: auto; bottom: 180px; left: 18px; }
  .note-right { top: auto; bottom: 180px; right: 18px; }
  .descent-prompt { margin-top: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 14px; }
  .creature-field { gap: 5px; padding-left: 3px; padding-right: 3px; }
  .creature-instruction { font-size: 7px; letter-spacing: .1em; }
  .creature { padding-left: 3px; padding-right: 3px; }
  .creature-art { font-size: 13px; }
  .creature-name { font-size: 8px; }
  .project-grid { grid-template-columns: 1fr; max-width: 500px; }
  .project-card { min-height: 180px; }
  .region-twilight { padding-top: 75px; }
  .region-dusk { padding-top: 75px; }
  .site-footer { justify-content: center; text-align: center; }
  .site-footer span:nth-child(2) { width: 100%; order: 3; }
}
@media (max-width: 390px) {
  h1 { font-size: 23px; letter-spacing: .06em; }
  .title-rule { display: none; }
  .subtitle { letter-spacing: .1em; }
  .region-day { padding-left: 12px; padding-right: 12px; }
  .note-left, .note-right { padding: 5px 7px; font-size: 8px; max-width: 120px; }
  .portal { min-height: 190px; }
  .portal-art { font-size: 12px; }
  .creature-instruction { position: static; transform: none; width: 100%; text-align: center; background: transparent; margin-bottom: 5px; }
  .creature-field { flex-wrap: wrap; }
  .creature { flex-basis: 28%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #cursor-field { display: none; }
}
