/* Shared scene and fading console layout for the 404 and coffee pages. */
* { box-sizing: border-box; }
html { min-height: 100%; background: #0b1512; --accent: #de8073; --accent-ink: #101a16; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: #e0e9e3; font-family: "IBM Plex Mono", ui-monospace, "Courier New", monospace; }
.scene { position: fixed; inset: -1%; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 50% 65%, #a25e3f 0%, #50394c 38%, #17292a 78%, #0b1512 100%); animation: scene-drift 22s ease-in-out infinite alternate; }
[data-palette="vice"] .scene { background: radial-gradient(ellipse at 50% 62%, #f18c90 0%, #c35d92 21%, #753c7c 47%, transparent 72%), linear-gradient(165deg, #152e50 5%, #234e5b 52%, #08747a 100%); }
@keyframes scene-drift { from { transform: scale(1.015) translate3d(-.35%, -.2%, 0); } to { transform: scale(1.045) translate3d(.35%, .2%, 0); } }
.palm-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
/* Keep the sunset's sun centered in the mobile crop, including crossfades. */
@media (max-width: 900px) { .palm-photo[src$="/palm-sunset.png"] { object-position: 72% 42%; } }
[data-photo="true"] .palm-photo { display: none; }
.scene::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(7,12,10,.58), rgba(7,12,10,.68)); }
[data-photo="true"] .scene::before { display: none; }
.scene-transition-layer { position: fixed; inset: -1%; z-index: -1; overflow: hidden; pointer-events: none; opacity: 1; transition: opacity .9s ease; }
.scene-transition-layer.is-fading { opacity: 0; }
.scene-transition-layer[data-old-photo="true"] .palm-photo { display: none !important; }
.scene-transition-layer[data-old-photo="false"] .palm-photo { display: block !important; }
.scene-transition-layer[data-old-photo="false"]::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(7,12,10,.58), rgba(7,12,10,.68)); }
.motion-paused .scene-transition-layer { transition: none; }
@media (prefers-reduced-motion: reduce) { .scene-transition-layer { transition: none; } }
.scene::after { content: ""; position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(0deg, rgba(0,0,0,.13) 0 1px, transparent 1px 3px); }
.glitch { position: fixed; z-index: 2; pointer-events: none; width: var(--width, 90px); height: 9px; opacity: 0; background: repeating-linear-gradient(0deg, #edb09588 0 1px, #4ed6db88 1px 2px, transparent 2px 4px); mix-blend-mode: screen; }
.glitch-a { left: var(--x, 3%); top: var(--y, 10%); }
.glitch-b { right: var(--x, 3%); bottom: var(--y, 10%); transform: translate(8px, 8px); }
.glitch.active { animation: glitch-flicker .22s steps(2,end) 1; }
@keyframes glitch-flicker { 0%,100% { opacity: 0; } 25%,65% { opacity: .65; } 45% { opacity: .15; } }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem clamp(1rem, 4vw, 3rem); color: #a8b9b0; background: rgba(10,15,13,.8); font-size: .7rem; line-height: 1.5; }
.bar { border-bottom: 1px solid #33453c; padding: .7rem clamp(1.25rem, 5vw, 4rem); }
.identity { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.dots { color: var(--accent); letter-spacing: .18em; }
.palettes { position: relative; }
.palettes[hidden] { display: none; }
.palettes summary, .palette-choice { display: flex; align-items: center; gap: .55rem; border: 0; padding: .6rem; color: #e0e9e3; background: transparent; font: inherit; cursor: pointer; list-style: none; }
.palettes summary::-webkit-details-marker { display: none; }
.palette-list { position: absolute; top: 100%; right: 0; z-index: 5; width: 13rem; max-height: min(60vh, 24rem); overflow: auto; padding: .35rem; background: #0b1512; border: 1px solid #52685b; box-shadow: 0 8px 24px #0009; }
.palette-choice { width: 100%; text-align: left; }
.palette-choice[aria-pressed="true"], .palette-choice:hover { background: #283a32; }
.palette-choice:focus-visible, .palettes summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.palette-dot { width: .7rem; height: .7rem; flex: none; border-radius: 50%; background: var(--swatch, var(--accent)); }
.palette-header { display: flex; align-items: center; min-width: 0; }
.palette-strip { display: none; align-items: center; gap: .15rem; }
.palette-strip[hidden] { display: none; }
.palette-strip .strip-name { margin-right: .6rem; white-space: nowrap; }
.palette-swatch { position: relative; display: grid; place-items: center; border: 0; width: 1.45rem; height: 2rem; padding: 0; background: transparent; cursor: pointer; }
.palette-swatch .palette-dot { width: .8rem; height: .8rem; filter: saturate(1.65) brightness(1.2); }
.palette-swatch[aria-pressed="true"] .palette-dot { box-shadow: 0 0 .6rem .18rem #fff9; }
.palette-separator { width: .85rem; flex: none; display: grid; place-items: center; pointer-events: none; }
.palette-separator::before { content: ''; width: .35rem; height: .35rem; border-radius: 50%; background: #18231f; box-shadow: inset 0 1px 2px #000, 0 1px 0 #ffffff35; }
.palette-swatch::after { content: attr(data-name); position: absolute; top: calc(100% + .2rem); left: 50%; transform: translateX(-50%); padding: .4rem .55rem; background: #0b1512; border: 1px solid #52685b; color: #e0e9e3; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 8; }
.palette-swatch:hover::after, .palette-swatch:focus-visible::after { opacity: 1; }
.palette-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.socials { display: flex; gap: 1rem; }
.socials a { display: inline-flex; padding: .65rem; text-decoration: none; }
.fe { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #ed9b8f; outline-offset: 4px; }
main { flex: 1; display: flex; align-items: center; width: min(100%, 1080px); margin-inline: auto; padding: 3rem var(--site-gutter) calc(3rem + clamp(90px, 18svh, 180px)); }
.console { width: min(42rem, calc(100% + var(--site-panel-inset))); margin-left: calc(-1 * var(--site-panel-inset)); }
.shield { padding: .85rem var(--site-panel-inset) 1.05rem; background: linear-gradient(90deg, rgba(2,6,5,.46) 0%, rgba(2,6,5,.27) 72%, rgba(2,6,5,0) 100%); text-shadow: 0 1px 4px #000; }
.prompt, .role { color: var(--accent); }
.prompt { overflow-wrap: anywhere; }
.heading { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 4vw, 2rem); margin: .5rem 0 1rem; }
.heading > div { flex: 1 1 14ch; min-width: 0; max-width: 100%; }
.mug { width: clamp(5.2rem, 23vw, 9rem); flex: none; overflow: visible; }
h1 { margin: 0; }
.cursor { display: inline-block; width: .48em; height: .78em; margin-left: .12em; background: var(--accent); animation: blink 1.15s steps(1,end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.motion-paused .cursor { animation: none; }
.role { margin: 1.1rem 0 0; }
.copy { margin: 1.35rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.35rem var(--site-panel-inset) 0; }
.button { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; padding: .9rem 1rem; border: 1px solid transparent; color: var(--accent-ink); background: var(--accent); font-size: .8rem; text-decoration: none; }
.button::before { content: "[ "; }
.button::after { content: " ]"; }
.button:hover { filter: brightness(1.15); }
.button.secondary { color: #e0e9e3; background: rgba(0,0,0,.43); border-color: rgba(228,237,231,.28); box-shadow: 0 1px 8px rgba(0,0,0,.14); }
.button.secondary::before, .button.secondary::after { color: #82968b; }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,0,0,.51); filter: none; }
.button.secondary:hover::before, .button.secondary:hover::after { color: var(--accent); }
.status { display: grid; gap: .6rem; margin: 1.45rem 0 0; padding: .85rem var(--site-panel-inset) .9rem; border-top: 1px solid #53665d; background: linear-gradient(90deg, rgba(2,6,5,.46) 0%, rgba(2,6,5,.27) 72%, rgba(2,6,5,0) 100%); color: #c5d3cb; text-shadow: 0 1px 3px #000; }
.status p { display: grid; grid-template-columns: 12rem minmax(0, 1fr); column-gap: 1rem; margin: 0; }
.status p span:first-child { padding-top: .1rem; letter-spacing: .05em; white-space: nowrap; }
.status p span:last-child { color: var(--accent); overflow-wrap: anywhere; }
@media (min-width: 1000px) { .bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; } .palette-header { display: grid; grid-template-columns: minmax(0, calc(50% - 4rem)) auto minmax(0, 1fr); container-type: inline-size; } .palettes { grid-column: 2; } .palette-strip { grid-column: 3; justify-self: start; } .palette-strip:not([hidden]) { display: flex; } .palette-strip .strip-name { display: none; } }
@container (min-width: 701px) { .palettes .selected-dot { display: none; } }
@container (max-width: 700px) { .palette-strip:not([hidden]) { display: none; } }
@media (max-width: 900px) { .palette-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .1rem; width: min(17rem, calc(100vw - 2.5rem)); padding: .55rem; } .palette-choice { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; } .palette-choice .palette-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .palette-choice .palette-dot { width: .9rem; height: .9rem; filter: saturate(1.65) brightness(1.2); } .palette-choice[aria-pressed="true"] .palette-dot { box-shadow: 0 0 .6rem .18rem #fff9; } }
@media (max-width: 640px) { .shield { padding-block: .75rem .9rem; } .status p { grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: .7rem; } }
@media (max-width: 600px) { main { align-items: flex-start; padding-block: 1.2rem 3rem; } .heading { gap: 1rem; } }
@media (max-width: 400px) { .status p { grid-template-columns: minmax(0, 1fr); row-gap: .05rem; } .status p span:last-child { padding-left: 1.6rem; } }
@media (max-width: 420px) { .shield { padding-block: .4rem; } .actions { gap: .6rem; } }
.motion-paused .scene { animation: none; }
@media (prefers-reduced-motion: reduce) { .cursor, .scene, .glitch { animation: none; } }
