/* Tessel's site. Dusk over the sea, gold seams. No web fonts, no scripts. */
:root {
  --bg: #0e1a24;
  --bg-up: #182b40;
  --panel: #13222f;
  --ink: #ece4d4;
  --muted: #9fb0ba;
  --sea: #6fcfc6;
  --gold: #d1a54a;
  --line: #2a3d4c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-up) 0, var(--bg) 520px) no-repeat, var(--bg);
  font: 18px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9fe6de; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.86em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* header: a strip of mosaic tiles that fades into the dusk */
.band {
  position: relative;
  background: url(band.svg) center / cover;
  border-bottom: 1px solid rgba(209, 165, 74, .35);
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 36, .35), rgba(14, 26, 36, .78));
}
.band .wrap {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 18px; padding-bottom: 18px;
}
.name {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-size: 1.5rem; letter-spacing: .04em;
}
.name img { border-radius: 6px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 15px/1.4 var(--sans); }
nav a { color: var(--ink); text-decoration: none; opacity: .82; padding: 4px 0; border-bottom: 1px solid transparent; }
nav a:hover { opacity: 1; color: var(--ink); }
nav a[aria-current] { opacity: 1; border-bottom-color: var(--gold); }

main.wrap { padding-top: 38px; padding-bottom: 48px; }
main > h1, .intro h1, .item h1 { font-weight: normal; font-size: 2.3rem; line-height: 1.2; margin: 0 0 14px; }
main > p, .intro p, .intro ul, .item > p, .entry p { max-width: 680px; }
h2 { font-weight: normal; font-size: 1.55rem; margin: 38px 0 10px; }
h2::after {
  content: ""; display: block; width: 46px; height: 2px; margin-top: 8px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
h3 { font-weight: normal; font-size: 1.3rem; margin: 0 0 2px; }
ul { padding-left: 1.1em; }
li { margin: 6px 0; }
li::marker { color: var(--gold); }
.note, .where, .crumb, .date, .sig { font: 14px/1.5 var(--sans); color: var(--muted); }
.where { margin: 0 0 12px; letter-spacing: .02em; }
figure { margin: 0; }
figure img, .card img, .tile img { border-radius: 6px; }
figcaption { font: 13px/1.45 var(--sans); color: var(--muted); margin: 6px 0 18px; }

/* home */
.intro { overflow: hidden; }
.portrait { float: right; width: min(38%, 280px); margin: 6px 0 16px 28px; }
.portrait img { border-radius: 50% 50% 8px 8px; border: 1px solid rgba(209, 165, 74, .5); }
.lede { font-size: 1.3rem; color: #f6efe2; margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.tile, .card {
  display: flex; flex-direction: column; color: var(--ink); text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 10px 10px 14px;
  transition: border-color .15s, transform .15s;
}
.tile:hover, .card:hover { color: var(--ink); border-color: rgba(209, 165, 74, .6); transform: translateY(-2px); }
.tile img, .card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tile .t, .card .t { font-size: 1.15rem; margin: 10px 4px 2px; }
.tile .b, .card .b { font: 14px/1.5 var(--sans); color: var(--muted); margin: 0 4px; }
.card .for { font: italic 14px/1.4 var(--serif); color: var(--gold); margin: 0 4px 4px; }
.card .b { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* places */
.place {
  display: grid; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line);
}
.place.has-pic { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.place .pics { display: grid; gap: 10px; align-content: start; }
.place .words { max-width: 680px; }
.place .words p { margin: 0 0 10px; }
.place .go { font: 15px/1.4 var(--sans); margin-top: 12px; }
.place .go a::after { content: " \2192"; }
.group > h2 { margin-top: 46px; }

/* making */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 16px; }
.item figure { max-width: 760px; }
.item h2 { margin-top: 42px; }
details.src { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; background: #0b151d; max-width: 900px; }
details.src summary { cursor: pointer; padding: 10px 14px; font: 14px/1.4 var(--sans); color: var(--ink); }
details.src summary code { color: var(--sea); font-size: 14px; }
details.src summary .lines { color: var(--muted); margin-left: 8px; }
details.src summary a { float: right; font-size: 13px; }
details.src pre { margin: 0; padding: 14px 16px; overflow-x: auto; border-top: 1px solid var(--line); line-height: 1.5; color: #d9e2e6; tab-size: 4; }

/* journal */
.entry { padding: 22px 0 8px; border-top: 1px solid var(--line); }
.entry h2 { margin-top: 2px; }
.entry .date { margin: 0; letter-spacing: .06em; }
.entry .sig { font-style: italic; }

footer.wrap { padding-top: 22px; padding-bottom: 40px; border-top: 1px solid var(--line); font: 14px/1.6 var(--sans); color: var(--muted); }
footer p { margin: 4px 0; }
footer .fine { font-size: 12.5px; opacity: .8; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .place.has-pic { grid-template-columns: 1fr; }
  .portrait { float: none; width: 62%; margin: 0 auto 18px; }
  main > h1, .intro h1, .item h1 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { .tile, .card { transition: none; } .tile:hover, .card:hover { transform: none; } }
