@import url("vendor/daisyui-5.8.1/components/card.css");
@import url("vendor/daisyui-5.8.1/components/button.css");
@font-face{font-family:Fraunces;src:url(fraunces.ttf);font-weight:500;font-display:swap}
:root{--radius-box:.75rem;--radius-field:2rem;--border:1px;--depth:0;--noise:0;--color-base-200:#797b9c;--color-base-content:var(--paper);--color-primary:var(--orange);--color-primary-content:var(--night);--night:#15203e;--panel:#202e50;--paper:#fff2d6;--orange:#ffb280;--pink:#f5a4c7;--violet:#c6acff;--focus:#faaba4;--sunset:linear-gradient(110deg,var(--orange),var(--pink) 60%,var(--violet));--sunset-reverse:linear-gradient(290deg,var(--orange),var(--pink) 60%,var(--violet));--edge:max(clamp(.65rem,2vw,2rem),env(safe-area-inset-left),env(safe-area-inset-right));--header-gap:max(.6rem,env(safe-area-inset-top));--header-rest:calc(var(--header-gap) + .4rem + 2px + var(--header-content,44px));--header-docked:calc(env(safe-area-inset-top) + .4rem + 2px + var(--header-content,44px));--frost:1;scroll-padding-top:calc(var(--header-docked) + .6rem);color:var(--paper);background:var(--night);font:100%/1.5 system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0}a{color:inherit}header{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:0 clamp(1rem,2vw,2rem);flex-wrap:wrap;padding:.2rem clamp(.75rem,3vw,3rem);background:var(--panel)}nav{display:flex;flex-wrap:wrap;gap:0 clamp(.55rem,2vw,2rem)}header a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:.875rem}.mark{margin-inline-end:auto;gap:.4rem;font:500 1.38rem Fraunces,Georgia,serif}.mark::before{content:"";width:2rem;height:2rem;background:url(lily-pad.svg) center/contain no-repeat}a:focus-visible,button:focus-visible,.orb:focus-visible{outline:3px solid var(--focus);outline-offset:2px;box-shadow:0 0 0 6px var(--night)}
.pond{position:relative;height:100vh;height:100dvh;background:linear-gradient(172deg,var(--sky-top,#536397),var(--sky-mid,#d092ac) 28%,var(--sky-low,#ffc390) 46%)}.land{position:absolute;inset:0;background:url(pond-water.svg) 65% center/cover no-repeat;filter:brightness(var(--lit,1));will-change:filter}.garden header{--dock:0;--header-bottom:calc(var(--header-rest) + (var(--header-docked) - var(--header-rest)) * var(--dock));position:fixed;z-index:3;top:calc(var(--header-gap) * (1 - var(--dock)));left:calc(var(--edge) * (1 - var(--dock)));right:calc(var(--edge) * (1 - var(--dock)));padding:calc(.2rem + env(safe-area-inset-top) * var(--dock)) calc(var(--pad-end,1.4rem) + var(--edge) * var(--dock)) .2rem calc(1rem + var(--edge) * var(--dock));border:1px solid rgb(180 167 210 / calc(.333 * (1 - var(--dock))));border-bottom-color:#b4a7d255;border-radius:calc(1rem * (1 - var(--dock)));background:var(--night);box-shadow:0 2px 9px #23362c12}
/* Header morph: garden.js sets --dock from 0 at the top to 1 once scrolled. The inset, rounded bar flattens into an
   edge-to-edge top bar; its padding grows by what the inset shrinks, so the links never move sideways or under a notch.
   --header-rest and --header-docked are the bar's bottom at either end and stay constant while scrolling, so layout never
   follows the morph. The live --header-bottom places the menu. --header-content is the measured content height. */
@property --header-rest{syntax:"<length>";inherits:true;initial-value:0px}
/* The garden stays fixed to the viewport on every page. --frost (0–1) fades in a frosted layer for reading:
   home ties it to scroll in garden.js, the other pages start fully frosted. The orb sits above the scene, so it fades itself. */
.scene{position:fixed;inset:0 0 auto;z-index:0}.scene::after{content:"";position:absolute;inset:0;opacity:var(--frost);background:#15203ee6;pointer-events:none}
/* The reading pages show the same celestial body as a decorative part of the frosted scene. */
.garden:not(.home) .pond::after{content:"";position:absolute;left:var(--orb-x,74%);top:var(--orb-y,26%);width:2.5rem;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle at 40% 38%,var(--paper),#ffd49a 72%)}
.garden:not(.home) .scene.moon .pond::after{background:radial-gradient(circle at 38% 36%,var(--paper),#c9cbe6 76%)}
.home{--frost:0}.home:has(#explore:target){--frost:1}
.orb{filter:opacity(calc(1 - var(--frost) * .9))}
/* Reading sheets: solid by default, so text never depends on what the garden shows behind it. */
.directory,.copy{position:relative;z-index:1;border:1px solid #b4a7d255;border-radius:1rem;background:var(--night);box-shadow:inset 0 1px #fff2d614}
/* Icy glass only where blur works and the visitor has not asked for less transparency or more contrast. */
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
  @media(prefers-reduced-transparency:no-preference) and (prefers-contrast:no-preference){
    .garden header{background:#15203ec2;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
    .scene::after{background:#15203e5c;-webkit-backdrop-filter:blur(26px);backdrop-filter:blur(26px)}
    .orb{filter:blur(calc(var(--frost) * 10px)) opacity(calc(1 - var(--frost) * .35))}
    .directory,.copy{background:#15203eb8}
  }
}
header a:hover,.menu-toggle:hover,footer a:hover{color:var(--orange)}
/* Current page: four 1px viewfinder corners. A border masked down to its corners keeps them visible in forced colors. */
/* The rings and corners reach .4rem past the link, so the header pads its end by that much more than its start. */
:is(header nav,footer) a,.lang{--ring-inset:.55rem -.4rem;position:relative}
#mobile-menu nav a{--ring-inset:.5rem .3rem}
header nav a:focus-visible{outline:0;box-shadow:none}
header nav a:focus-visible::after{content:"";position:absolute;inset:var(--ring-inset);border:2px solid var(--focus);pointer-events:none}
@media(forced-colors:active){header nav a:focus-visible::after{border-color:Highlight}}
:is(header nav,footer) [aria-current="page"]::before{--arm:.4rem;content:"";position:absolute;inset:var(--ring-inset);border:1px solid currentColor;mask:conic-gradient(at var(--arm) var(--arm),#0000 75%,#000 0) 0 0/calc(100% - var(--arm)) calc(100% - var(--arm));pointer-events:none}
.copy{width:min(46rem,100% - 2 * var(--edge));margin:calc(var(--header-rest) + clamp(1.5rem,8vh,5rem)) auto clamp(1.5rem,8vh,5rem);padding:clamp(1.5rem,5vw,3rem)}.copy>:last-child{margin-bottom:0}.copy h1{font:500 clamp(2.4rem,7vw,4.5rem)/1.1 Fraunces,Georgia,serif;margin:.4em 0}.copy small{letter-spacing:.05em}
.directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-content:start;width:min(78rem,100% - 2 * var(--edge));margin:0 auto var(--edge);padding:clamp(2rem,6vw,5rem) clamp(1.25rem,4vw,3rem);min-height:calc(100vh - var(--header-docked) - .6rem - var(--edge))}
/* min-height and scroll-margin let #explore always reach the top below the fixed header, however short the directory. */
.directory h2{scroll-margin-top:clamp(2rem,6vw,5rem);grid-column:1/-1;font:500 clamp(2rem,4vw,3rem)/1.15 Fraunces,Georgia,serif;margin:0 0 .5rem}
.directory .card{text-decoration:none}.directory .card-body{gap:.65rem;padding:1.5rem;font-size:1rem}.card-title{justify-content:space-between}
.directory a:is(:hover,:focus-visible){background:#293855;border-color:var(--pink)}
.directory strong{font:500 1.6rem/1.2 Fraunces,Georgia,serif}
.directory strong::after{content:"→" / "";float:right;font:1rem system-ui}
/* Language choice: a globe at rest, the other language's name (in that language) sliding out to its left on hover or keyboard focus.
   The name stays in the accessibility tree while clipped, so the link is always called "Deutsch" or "English".
   The globe is pinned to the link's end, so the link only grows leftward, into space the header keeps free for it. */
.lang{--ring-inset:.55rem .25rem;justify-content:flex-end;gap:0;min-width:44px;padding-inline:.65rem;transition:gap .25s ease}.lang svg{flex:none}
.lang span{max-width:0;overflow:hidden;white-space:nowrap;opacity:0;transition:max-width .25s ease,opacity .2s ease}
/* Touch screens never reveal on hover, so a tap follows the link at once instead of first showing the name (iOS sticky hover). */
@media(min-width:26rem){
  .lang:focus-visible{gap:.35rem}.lang:focus-visible span{max-width:6em;opacity:1}
  @media(hover:hover){.lang:hover{gap:.35rem}.lang:hover span{max-width:6em;opacity:1}}
}
/* Narrower, growing in flow would wrap the mark, so the name drops out of flow into a small tag just below the globe.
   Anchored to the link's end it can only extend leftward, over the free header gap; opacity alone hides it, so it stays the link's name. */
@media(max-width:25.99rem){
  .lang span{position:absolute;top:calc(100% - .4rem);right:.2rem;max-width:none;padding:.1rem .45rem;font-size:.8rem;line-height:1.4;color:var(--paper);background:var(--night);border:1px solid #9f96b6;border-radius:.5rem;transform:translateY(-.25rem);pointer-events:none;transition:opacity .2s ease,transform .2s ease}
  .lang:focus-visible span{opacity:1;transform:none}
  @media(hover:hover) and (pointer:fine){.lang:hover span{opacity:1;transform:none}}
}
/* Beside the page links, the link keeps its revealed width at rest, so the links never shift and the pointer never leaves it mid-reveal.
   The ring sits inside the link, so it gives back the .4rem the header reserves for rings that reach past their link. */
@media(min-width:48.01rem){.lang{min-width:6.25rem;margin-inline-end:-.4rem}}
/* Without the page links it grows into the gap after the mark; one line keeps the menu button put, and the name clips if room runs out. */
@media(max-width:48rem){header{flex-wrap:nowrap}}
@media(prefers-reduced-motion:reduce){.lang,.lang span{transition:none}}
@media(max-width:21rem){.mark{font-size:1.15rem}}
.menu-toggle,#mobile-menu{display:none}
/* The menu button takes over once the page links and the language link no longer share one line, in either language. */
@media(max-width:48rem){
  header>nav{display:none}
  .garden header{column-gap:.5rem;--pad-end:1rem}.menu-toggle{--ring-inset:0}
  .menu-toggle{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:0 .6rem;color:inherit;background:transparent;border:0;font:inherit;cursor:pointer}
  #mobile-menu:popover-open{display:block;position:fixed;inset:calc(var(--header-bottom) + .4rem) max(.75rem,env(safe-area-inset-right)) auto auto;margin:0;min-width:10rem;padding:.35rem;background:var(--night);color:var(--paper);border:1px solid #9f96b6;border-radius:.75rem;max-height:calc(100dvh - var(--header-bottom) - 1.15rem);overflow:auto}
  #mobile-menu nav{display:grid;gap:0}
  #mobile-menu a{padding-inline:.75rem}
}

.garden-frame{--hero-inset:max(clamp(1.25rem,4vmin,2.5rem),env(safe-area-inset-left),env(safe-area-inset-bottom));position:relative;height:100vh;height:100dvh;overflow:clip;pointer-events:none}.garden-frame :is(.orb,.explore){pointer-events:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Leave open water under the lettering by fading only the lilies and reflected highlights. */
.land::before{content:"";position:absolute;inset:0;background-image:url(garden.svg);background-position:inherit;background-size:inherit;background-repeat:no-repeat;mask-image:radial-gradient(ellipse clamp(42rem,85vw,85rem) clamp(23rem,36vw,44rem) at left bottom,transparent 70%,#000 98%)}
/* Side tree lines share garden.svg's 410-unit height, so height:100% keeps them on the same horizon. */
.trees{position:absolute;top:0;height:100%;max-width:38%;object-fit:cover}.trees-left{left:0;object-position:left top;mask-image:linear-gradient(90deg,#000 80%,#0000)}.trees-right{right:0;object-position:right top;mask-image:linear-gradient(270deg,#000 80%,#0000)}
/* Lower-left editorial block: the text rests on the water, the arc keeps the sky, the right-hand lilies stay clear. */
.hero{position:absolute;left:0;bottom:calc(var(--hero-inset) + 4rem);margin:0;padding-inline:var(--hero-inset);font-size:clamp(2.5rem,6vw,5.5rem);text-shadow:0 1px 2px #15203e59,0 0 1rem #15203e66;pointer-events:none}
.hero p{width:fit-content;margin:0 0 .5rem;font:600 clamp(.95rem,1.8vw,1.2rem)/1.3 system-ui,sans-serif;letter-spacing:.04em}
.hero h1{width:fit-content;max-width:14ch;margin:0;text-wrap:balance;font:500 1em/1.08 Fraunces,Georgia,serif}
@media(orientation:landscape) and (max-height:36rem){
  .pond,.garden-frame{min-height:22rem}
  .hero{bottom:calc(var(--hero-inset) + 3.2rem);font-size:clamp(1.8rem,4vw,2.6rem)}
  .hero h1{max-width:none}
}
/* Sun or moon: the time-of-day slider. JS sets --x/--y; without JS it stays a still, decorative sun. */
.orb{position:fixed;z-index:1;left:var(--x,70%);top:var(--y,24%);width:3rem;height:3rem;margin:-1.5rem 0 0 -1.5rem;border-radius:50%;touch-action:none;-webkit-user-select:none;user-select:none}.orb[role]{cursor:grab}.orb[role]:active{cursor:grabbing}
.orb::before{content:"";position:absolute;inset:.3rem;border-radius:50%;background:radial-gradient(circle at 40% 38%,var(--paper),#ffd49a 72%);box-shadow:0 0 1.6rem .45rem #ffd9a870}
.orb.moon::before{background:radial-gradient(circle at 38% 36%,var(--paper),#c9cbe6 76%);box-shadow:0 0 1.3rem .25rem #dfe3ff45}
.hint{position:absolute;top:calc(100% + .1rem);left:50%;translate:-50% 0;color:var(--night);text-shadow:0 0 .2rem var(--paper),0 0 .5rem color-mix(in srgb,var(--paper) 70%,transparent);font:400 .75rem/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}.orb.moon .hint{color:var(--paper);text-shadow:0 0 .2rem #15203e,0 0 .5rem #15203eb3}.orb:not([role]) .hint{display:none}
.explore,.featured b{background:var(--sunset);color:var(--night);padding:.7rem 1.15rem;border-radius:2rem;font-weight:650;text-decoration:none}
.explore{position:absolute;left:var(--hero-inset);bottom:var(--hero-inset);white-space:nowrap}
.explore:hover,.directory .featured:hover b{background:var(--sunset-reverse)}
.directory .featured{grid-column:span 2;background:var(--panel)}.featured .card-body{padding:clamp(1.5rem,4vw,3rem)}
.featured strong{font-size:clamp(2.4rem,5vw,4rem)}
.featured strong::after{content:none}
.featured b{align-self:start;margin-top:.6rem}
.directory small,.eyebrow{color:var(--pink)}
@media(min-width:46rem){.directory a[href="side-projects.html"]{grid-column:span 2}}
@media(max-width:46rem){.directory{grid-template-columns:1fr}.directory .featured{grid-column:auto}}
@media(orientation:portrait){.land{background-position:82% center}.trees-right{display:none}.trees-left{max-width:none;translate:-71% 0;mask-image:none}}
/* Focus ring: Explore's sunset flipped to 290deg, drawn as a masked ring where outline used to sit. Inline text links, old browsers and forced colors keep the solid outline above. */
@supports (mask-composite:exclude){
  @media(forced-colors:none){
    :is(header a,#mobile-menu a,.menu-toggle,footer a):focus-visible{position:relative}
    :is(header a,#mobile-menu a,.menu-toggle,.explore,.directory a,.orb,footer a):focus-visible{outline-color:transparent}
    :is(header a,#mobile-menu a,.menu-toggle,.explore,.directory a,.orb,footer a):focus-visible::after{content:"";position:absolute;inset:var(--ring-inset,-5px);border:3px solid transparent;border-radius:var(--ring-radius,inherit);background:var(--sunset-reverse) border-box;mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);mask-composite:exclude;pointer-events:none}
    /* ::after is placed from the padding box, so bordered boxes step out past their border too. Radius = outer radius + the ring's 5px reach keeps it concentric. */
    :is(.explore,.directory a){--ring-inset:calc(-5px - var(--border));--ring-radius:calc(var(--radius-box) + 5px)}
    .garden .explore{--ring-radius:calc(2rem + 5px)}
  }
}

/* Legal links: two quiet words under the content, with no bar, rule or background. The halo keeps them legible on the pond. */
body>footer{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;gap:0 1.75rem;padding:0 var(--edge) max(.5rem,env(safe-area-inset-bottom));font-size:.8125rem;text-shadow:0 1px 2px #15203e99,0 0 .75rem #15203e99}
footer a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
/* Owner-supplied details still missing from the legal drafts. */
.placeholder{color:var(--orange)}
