/* *-*-*-*-*-*-*-*-*-*-*-* the home page: the ascii garden on the first screen, the old garden's sections under it *-*-*-*-*-*-*-*-*-*-*-* */
:root {
  --bg: #0b0b0c; --panel: #161618; --ink: #ededef; --ink2: #a0a0a8; --line: #5a5a66; --dim: #7a7a84;
  /* the garden's colours */
  --leaf: #8ed38a; --leaf2: #5fae6e; --apple: #ff8a7a; --bark: #b38b6d; --roof: #d98c6c; --light: #ffd76a;
  --owl: #d8c4a2; --star: #5f5f6b; --star2: #d6d6e0; --moon: #f3e2a6; --cloud: #4b5160;
  --pink: #f5a3c0; --yellow: #f3d47a; --lilac: #b7a5f4; --sky: #8ec5ff; --grass: #71c27a; --grass2: #3f7d50;
  --firefly: #e9f59a; --fence: #7a6a5c; --water: #6f9fd8; --fly: #e0c27b; --fly2: #d8a0b8;
  --hair: #b8743f; --skin: #f1d9c4; --red: #ff5a4a; --cream: #f1e8d4;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  --pad: max(5vw, calc((100% - 1600px) / 2));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); overflow-x: hidden; position: relative; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--ink); font-weight: 600; }
a:hover, a:focus-visible, button:hover { text-shadow: 0 0 8px rgba(255, 226, 150, .65); color: var(--ink); }
h1, h3, p { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink2); outline-offset: 4px; }

/* *-*-*-*-*-*-*-*-*-*-*-* the menu *-*-*-*-*-*-*-*-*-*-*-* */
header.site { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 22px var(--pad); font-size: 15px; }
header.site nav, header.site .elsewhere { display: flex; gap: 26px; align-items: center; }
header.site .elsewhere { margin-left: auto; }
/* the bar's own empty room lets a click through to the scene (slopware's name stands just under it) */
header.site { pointer-events: none; }
header.site nav > *, header.site .elsewhere > * { pointer-events: auto; }
header.site a, header.site button { color: var(--ink2); }
header.site a:hover, header.site button:hover, header.site a:focus-visible { color: var(--ink); }
.home { color: var(--ink) !important; }
.menu { position: relative; }
.menu-d { position: absolute; top: calc(100% + 12px); left: -16px; z-index: 30; min-width: 300px; padding: 6px 0; background: var(--panel); }
.menu-d[hidden] { display: none; }
.menu-d > * { display: flex; justify-content: space-between; gap: 24px; padding: 8px 16px; white-space: nowrap; }
.menu-d span span, .menu-d a span { color: var(--ink2); }
.menu-d .off { color: var(--ink2); }
header.site .menu-d a { color: var(--ink); }
.find { display: flex; align-items: center; gap: 8px; }
.find input { width: 0; opacity: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 15px var(--sans); outline: none; transition: width .2s, opacity .2s; }
.find.on input { width: 170px; opacity: 1; border-bottom: 1px solid var(--line); }
.find svg { display: block; }

/* *-*-*-*-*-*-*-*-*-*-*-* the first screen: one scene *-*-*-*-*-*-*-*-*-*-*-* */
.stage { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
/* the prototype's svgs the scene is laid out on: never seen, only measured */
.lay { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
canvas.layer { position: absolute; left: 0; top: 0; pointer-events: none; }
#back { z-index: 1; }
#girl { position: absolute; z-index: 2; margin: 0; white-space: pre; font-family: var(--mono); font-variant-ligatures: none; pointer-events: none; user-select: none; color: var(--ink2); }
#girl b { font-weight: 400; background: var(--bg); }
#front { z-index: 3; }
.hero { position: absolute; z-index: 4; left: 0; right: 0; top: 0; text-align: center; padding-top: clamp(104px, 18svh, 150px); pointer-events: none; }
.hero h1 { font-size: clamp(44px, 6vw, 88px); font-weight: 600; letter-spacing: -.045em; line-height: 1; width: fit-content; margin: 0 auto; }
.hero p { font-size: 22px; color: var(--ink2); margin: 12px auto 0; width: fit-content; line-height: 1.35; }
.hero p span { display: inline-block; }
#labels { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; }
body.ready #labels { opacity: 1; }
.lb { position: absolute; text-align: center; line-height: 1.2; pointer-events: auto; cursor: pointer; text-wrap: balance; }
.lb.nm { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.lb.sh { font-size: 15px; color: var(--ink2); }
.lb.sh em { font-style: normal; color: var(--ink); font-weight: 600; }
.lb:hover { text-shadow: 0 0 8px rgba(255, 226, 150, .65); }
.note { font-size: 15px; color: var(--ink2); line-height: 1.35; width: fit-content; }
#labels .note { position: absolute; pointer-events: none; text-align: left; }
.stage .panel { position: absolute; z-index: 8; width: min(360px, calc(100vw - 32px)); padding: 16px 20px 18px; background: var(--panel); }
.stage .panel[hidden] { display: none; }
.stage .panel h3 { font-size: 22px; font-weight: 600; margin-right: 56px; }
.stage .panel p { font-size: 15px; color: var(--ink2); margin-top: 8px; line-height: 1.55; }
.stage .panel .links { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-top: 12px; color: var(--ink); }
.stage .panel .x { position: absolute; top: 18px; right: 20px; color: var(--red, #ff5a4a); font-family: var(--mono); }

/* under her line, her two other homes (Damla, 6 Nov): grey, white with the glow under the pointer */
.hero p .me { display: flex; justify-content: center; gap: 32px; margin-top: 14px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.hero .me a { pointer-events: auto; color: var(--ink); }
.hero .me a:hover, .hero .me a:focus-visible { color: var(--ink); }

/* *-*-*-*-*-*-*-*-*-*-*-* under the scene: the old garden's sections (c17fab1 garden.css) *-*-*-*-*-*-*-*-*-*-*-* */
main > section:not(.stage), footer { font: 18px/1.6 var(--sans); }
main > section:not(.stage) a:hover, footer a:hover { color: var(--light); text-shadow: none; }
main > section:not(.stage) a:focus-visible, footer a:focus-visible { text-shadow: none; }
h2 { margin: 0; }

/* colours of the garden */
.leaf{color:var(--leaf)}.leaf2{color:var(--leaf2)}.apple{color:var(--apple)}.bark{color:var(--bark)}.roof{color:var(--roof)}.light{color:var(--light)}
.owl{color:var(--owl)}.star{color:var(--star)}.star2{color:var(--star2)}.moon{color:var(--moon)}.cloud{color:var(--cloud)}.pink{color:var(--pink)}
.yellow{color:var(--yellow)}.lilac{color:var(--lilac)}.sky{color:var(--sky)}.grass{color:var(--grass)}.grass2{color:var(--grass2)}
.firefly{color:var(--firefly)}.fence{color:var(--fence)}.water{color:var(--water)}.ink{color:var(--ink)}.ink2{color:var(--ink2)}

/* what moves: sparse, and always in steps */
.firefly { animation: glow 9s steps(1, end) infinite; color: var(--firefly); }
@keyframes glow { 0% { opacity: 0 } 15% { opacity: .55 } 30% { opacity: 1 } 55% { opacity: .55 } 70%, 100% { opacity: 0 } }

/* below the garden: small type, names 17px, every other line 15px */
main > section:not(.stage) { position: relative; padding: 80px var(--pad) 0; overflow-x: clip; }
h2 { font-size: 40px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 32px; text-align: center; }

/* the list: straight rows, every bed as wide as its drawing and its words wrapping under it; ground.js makes the
   drawings smaller together until dewfpga, stitchu and dewguard share the first row, and stands the drawings
   of a row on one line so the names line up */
/* three to the first row (dewfpga, stitchu, dewguard), then rows of five */
.beds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); align-items: start; gap: 0 32px; }
.bed { grid-column: span 3; min-width: 0; padding-bottom: 28px; text-align: center; }
/* the picture first, its name and line under it, all centred in the cell (damla, 5 nov) */
.bed > .ascii { margin-left: auto; margin-right: auto; margin-bottom: 14px; }
.bed-big, .bed-third { grid-column: span 5; }
.bed .art { display: block; margin: 0; font: 15px/1.25 var(--mono); white-space: pre; color: var(--ink2); }
.bed .ascii { max-width: 100%; }
.bed-end { grid-column: 1 / -1; padding-bottom: 0; }
/* the meadow at the list's end runs straight into the garden under the section (damla, 5 nov) */
main > section#projects { padding-bottom: calc(15px * 1.38 * 4) !important; }
.bed-end .ascii { width: 100%; }
/* name, then the short line, then the picture (damla, 5 nov); below-art.js stands a row's pictures on one line */
.bed h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.bed p { margin-top: 4px; }

.bed p { color: var(--ink2); font-size: 15px; line-height: 1.5; }
.beds-more { text-align: center; margin-top: 28px; font-size: 15px; color: var(--ink2); }
.beds-more a { color: var(--ink); }

.sites { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 40px; }
.sites a { display: block; }
.sites b { display: block; font-size: 22px; font-weight: 600; color: var(--ink); }
.sites span { display: block; font-size: 15px; color: var(--ink2); overflow-wrap: anywhere; }
.sites a:hover b, .sites a:focus-visible b { color: var(--light); }
.sites a:hover span, .sites a:focus-visible span { color: var(--ink); }

/* the heading stays in the middle; one drawing that tells the section stands on one side of it, never a pair */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; column-gap: 36px; margin-bottom: 32px; }
.sec-head > h2 { grid-column: 2; grid-row: 1; }
.sec-head > :first-child:not(h2) { grid-column: 1; grid-row: 1; justify-self: end; }
.sec-head > h2 ~ * { grid-column: 3; grid-row: 1; justify-self: start; }
.sec-head .side { display: flex; align-items: flex-end; gap: 28px; }
.sec-head h2 { margin: 0; }
.sec-head .art, .about-grid .art { margin: 0; font: 15px/1.25 var(--mono); white-space: pre; color: var(--ink2); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; }
/* each part of about has its own drawing over its words; the drawings of a row share one line, so the headings under them line up */
.about-grid article { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 2; row-gap: 14px; }
.about-grid article .art, .about-grid article .ascii { justify-self: start; align-self: end; }
.about-grid .ascii { width: 100%; }
.about-grid h3, .cv-grid h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
.about-grid p { font-size: 15px; line-height: 1.65; color: var(--ink2); max-width: 70ch; }

.cv-head h2 { margin: 0; }
.cv-head a { font-size: 15px; color: var(--ink2); margin-bottom: 8px; }
.cv-head a:hover, .cv-head a:focus-visible { color: var(--ink); }
/* the cv in three columns, experience | education | skills; the duck pond in the room under education and skills */
.cv-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "exp edu skills" "exp pond pond";
  grid-template-rows: auto 1fr; align-items: start; gap: 40px 56px; font-size: 15px; line-height: 1.55; }
.cv-exp { grid-area: exp; } .cv-edu { grid-area: edu; } .cv-skills { grid-area: skills; }
.pond { grid-area: pond; position: relative; align-self: end; min-width: 0; }
.pond canvas, [data-art] canvas { display: block; }
.cv-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cv-grid li b { font-weight: 600; color: var(--ink); }
.cv-grid li .when { color: var(--ink2); font-size: 15px; margin-left: 10px; white-space: nowrap; }
.cv-grid li span.what { display: block; color: var(--ink2); }

/* a few tiny butterflies and birds resting in the empty places under the garden (lower.js) */
.flock { position: absolute; margin: 0; font: 13px/1.16 var(--mono); white-space: pre; pointer-events: none; user-select: none; }
.flock.fly2 { font-size: 15px; }
.fly { color: var(--fly); } .fly2 { color: var(--fly2); } .dim { color: var(--dim); }

/* the garden under the garden (ground.js): one layer of characters behind the sections, down to the end of the page */
.ground { position: absolute; left: 0; top: 0; z-index: 0; margin: 0; font: 15px/1.38 var(--mono); white-space: pre;
  color: var(--ink2); pointer-events: none; user-select: none; overflow: hidden; }
[data-alt=a] main > section:not(.stage) { padding-bottom: calc(15px * 1.38 * 15); }
[data-alt=b] main > section:not(.stage) { padding-bottom: calc(15px * 1.38 * 7); }
[data-alt=b] main > section:nth-of-type(2n) { padding-left: calc(var(--pad) + 110px); }
[data-alt=b] main > section:nth-of-type(2n+3) { padding-right: calc(var(--pad) + 110px); }
[data-alt=b] .flock { display: none; }
[data-alt=c] main > section:not(.stage) { padding-bottom: calc(15px * 1.38 * 19); }
.ground .far { opacity: .38; }
.ground .mid { opacity: .62; }

footer { padding: 96px 0 28px; }
.meadow-strip { margin: 0; font: 15px/1.38 var(--mono); white-space: pre; overflow: hidden; color: var(--grass); user-select: none; }
footer p { padding: 18px var(--pad) 0; font-size: 15px; color: var(--ink2); }

/* the garden is drawn in cells: 15px on a laptop, bigger on a big screen, smaller on a phone */
@media (min-width: 1700px) and (min-height: 950px) {
  .meadow-strip { font-size: 18px; }
}
/* the addresses never break inside a word: four to a row only where the longest one fits */
@media (max-width: 1240px) {
  .sites { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .cv-grid { column-gap: 36px; }
}
@media (max-width: 960px) {
  .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .meadow-strip, .ground { font-size: 12px; }
  [data-alt=b] main > section:nth-of-type(n) { padding-left: 16px; padding-right: 16px; }
  .sites { grid-template-columns: 1fr; gap: 22px; }
  main > section:not(.stage) { padding: 64px 16px 0; }
  h2 { font-size: 34px; margin-bottom: 28px; }
  .beds { grid-template-columns: minmax(0, 1fr); }
  .bed, .bed-big, .bed-third { grid-column: auto; width: 100%; }
  .sec-head { gap: 18px; }
  .about-grid article { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .about-grid article .art { justify-self: start; }
  /* a phone: the heading's drawing goes over the heading (or under it, when it stood on its right), never past the edge */
  .sec-head { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 12px; }
  .sec-head > h2, .sec-head > :first-child:not(h2), .sec-head > h2 ~ * { grid-column: 1; grid-row: auto; justify-self: center; }
  .about-grid, .cv-grid { grid-template-columns: 1fr; gap: 36px; }
  .cv-grid { grid-template-areas: "exp" "edu" "skills" "pond"; grid-template-rows: none; }
  footer p { padding: 14px 16px 0; }
}
/* a finger's room on a phone (the bar's own in nav.css): every link and button answers a 44 px square round it (or its own box, when that is
   bigger), nothing on the page moves */
@media (max-width: 700px) {
  .beds-more a, .cv-head a, .bed h3 a, .stage .panel .links a, .hero .me a { position: relative; }
  .beds-more a::after, .cv-head a::after, .bed h3 a::after, .lb::after, .stage .panel .x::after, .stage .panel .links a::after, .hero .me a::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* *-*-*-*-*-*-*-*-*-*-*-* a phone's first screen (6 nov): one band, the left group, as a picture under the hero *-*-*-*-*-*-*-*-*-*-*-* */
/* the bar is one row of 52 px; the name, her line and the links row come right under it, the band right under them */
@media (max-width: 700px) {
  .stage { min-height: 0; }
  .stage .hero { padding-top: 66px; }
  .stage .hero p { margin-top: 10px; }
}
/* a phone's sections follow one another closely: a shorter strip of garden between them (the desktop keeps its 15
   rows), and a shorter foot */
@media (max-width: 700px) {
  [data-alt=a] main > section:not(.stage) { padding-bottom: calc(12px * 1.38 * 8); }
  main > section#projects { padding-bottom: calc(12px * 1.38 * 6) !important; }
  footer { padding-top: 40px; }
}
