/* Landing page. The design follows the "Nantucket Sound" landing template. */
:root {
  --ink: #141414;
  --muted: #55514b;
  --paper: #f6f3ee;
  --blue: #1a4fd6;
  --orange: #e8562a;
  --yellow: #f5b832;
  --green: #1f7a4d;
  --gutter: clamp(16px, 3vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: NantucketSound, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--blue); }
[contenteditable]:focus, input:focus { outline: none; }
button { font: inherit; }
.mono { font-family: NantucketSoundMono, ui-monospace, monospace; }
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* bar */
.bar { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 15px; }
.nav { display: flex; gap: clamp(12px, 2vw, 26px); align-items: center; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.pill-blue { background: var(--blue); color: #fff !important; padding: 9px 14px; border-radius: 999px; font-weight: 600; }

/* hero */
.hero { position: relative; margin: 0 var(--gutter); border: 1px solid var(--ink); background: #fff; height: clamp(600px, 84vh, 840px); overflow: hidden; user-select: none; }
.hero-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 10px; line-height: 1; font-weight: 500; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; background: #fff; border-bottom: 1px solid var(--ink); z-index: 2; }
.hero-stage { position: absolute; left: 50%; top: 41%; transform: translate(-50%, -50%); max-width: 92%; }
.frame { position: relative; border: 1.5px dashed var(--blue); padding: 28px clamp(16px, 3vw, 40px) 20px; }
.handle { position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid var(--blue); }
.handle.tl { left: -6px; top: -6px; } .handle.tr { right: -6px; top: -6px; } .handle.bl { left: -6px; bottom: -6px; }
.handle.br { right: -9px; bottom: -9px; width: 16px; height: 16px; background: var(--blue); border: 1.5px solid #fff; cursor: nwse-resize; box-shadow: 0 0 0 1.5px var(--blue); touch-action: none; }
.frame-label { position: absolute; left: 0; top: -26px; font-size: 11px; line-height: 1; font-weight: 500; color: #fff; background: var(--blue); padding: 5px 8px; border-radius: 3px 3px 0 0; white-space: nowrap; }
.word { font-size: min(168px, 14vw); font-weight: 700; line-height: .9; white-space: nowrap; color: var(--ink); min-width: 40px; user-select: text; cursor: text; }
.callout { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.callout span, .callout a { font-weight: 600; font-size: 14px; padding: 4px 9px; border-radius: 5px; margin-left: 12px; white-space: nowrap; }
.callout b { font-weight: inherit; }
.c-weight { left: -40px; top: -78px; } .c-glyphs { right: -20px; top: -70px; } .c-tiny { left: 46%; bottom: -72px; } .c-dl { left: 6%; bottom: -84px; cursor: default; }
.hero-foot { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hero-blurb { display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.lede { font-size: 15px; line-height: 1.4; text-wrap: pretty; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.right { justify-content: flex-end; }
.chip { font-weight: 600; font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hero-controls { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toggles { display: flex; gap: 6px; }
.controls-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.slider { display: flex; align-items: center; gap: 12px; border-radius: 999px; padding: 10px 16px; width: min(300px, 70vw); }
.slider.dark { background: var(--ink); color: #fff; }
.slider.light { background: #f6f3ee; color: var(--ink); border: 1px solid var(--ink); margin-top: auto; }
.slider span { font-weight: 600; font-size: 10px; line-height: 1; letter-spacing: .1em; }
.slider input { flex: 1; accent-color: var(--yellow); height: 4px; min-width: 0; }
.slider output { font-weight: 600; font-size: 12px; line-height: 1; min-width: 30px; text-align: right; }
.tally { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--ink); padding: 10px 14px; }
.tally-n { font-weight: 700; font-size: 34px; line-height: 1; }
.tally-t { font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stamp { font-weight: 700; font-size: 12px; line-height: 1; color: var(--green); border: 2px solid var(--green); padding: 5px 7px; transform: rotate(-8deg); letter-spacing: .1em; }

/* inventory and family tiles */
.inv { margin: 16px calc(var(--gutter) - 12px) 44px; padding: 6px 12px 28px; overflow-x: clip; display: flex; flex-direction: column; gap: 12px; }
.inv-input { display: flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.inv-input span { padding: 12px 18px; font-size: 10px; line-height: 1; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.inv-input input { flex: 1; min-width: 0; border: 0; background: var(--yellow); padding: 12px 18px; font-family: NantucketSound, system-ui, sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(110px, auto); gap: 12px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.t2 { grid-column: span 2; } .t3 { grid-column: span 3; } .t4 { grid-column: span 4; } .t5 { grid-column: span 5; }
.t6 { grid-column: span 6; } .t7 { grid-column: span 7; } .r2 { grid-row: span 2; }
.tag { position: absolute; top: 8px; left: 12px; font-size: 8px; line-height: 1; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.tag-in { font-size: 8px; line-height: 1; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board { display: grid; grid-template-columns: 52px 1fr 60px; gap: 4px 10px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.board .h { color: #9a958c; font-size: 9px; line-height: 1.6; }
.catch { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; font-size: 13px; font-weight: 500; margin-top: 6px; font-variant-numeric: tabular-nums; }
.code { margin: 0; font-size: clamp(11px, 1.1vw, 14px); line-height: 1.221; white-space: pre; overflow: hidden; }
.opsz-row { display: flex; align-items: baseline; gap: 12px; }
.opsz-row span { font-size: 10px; width: 22px; }

/* sections */
.block { margin: 0 var(--gutter) 72px; display: flex; flex-direction: column; gap: 20px; }
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; align-items: end; }
h2 { margin: 0; font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1; }
.block p, .wish p { margin: 0; font-size: 14px; line-height: 1.45; max-width: 440px; text-wrap: pretty; }
.keyboard { background: var(--ink); border-radius: 14px; padding: clamp(8px, 1.2vw, 16px); display: flex; flex-direction: column; gap: clamp(4px, .6vw, 8px); }
.krow { display: flex; gap: clamp(4px, .6vw, 8px); justify-content: center; }
.key { min-width: 0; height: clamp(36px, 4vw, 56px); border-radius: 7px; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); white-space: nowrap; overflow: hidden; padding: 0; }
.dock-controls { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.glass-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); border: 1px solid var(--ink); background: #fff; }
.glass { position: relative; min-height: 400px; border-right: 1px solid var(--ink); background: #faf8f4; background-image: linear-gradient(#eeebe4 1px, transparent 1px), linear-gradient(90deg, #eeebe4 1px, transparent 1px); background-size: 20px 20px; overflow: hidden; }
.glass-top { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; font-size: 9px; line-height: 1; font-weight: 500; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; z-index: 1; }
.metric { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--c); }
.metric.solid { border-top-style: solid; }
.metric span { position: absolute; left: 12px; top: -14px; font-size: 9px; line-height: 1; font-weight: 500; color: var(--c); }
.big-glyph { position: absolute; left: 50%; transform: translateX(-50%); line-height: normal; color: var(--ink); white-space: nowrap; }
.inspector { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.inspector-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.btn { border: 1px solid var(--ink); background: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: 12px; cursor: pointer; color: var(--ink); }
.btn.dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.dock { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); background: #fff; }
.cell { aspect-ratio: 1; border: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; background: #fff; color: var(--ink); padding: 0; }
.cell:hover { background: var(--yellow); }
.cell.on { background: var(--blue); color: #fff; }
.cell b { font-size: clamp(18px, 2vw, 26px); line-height: 1; }
.cell i { font-style: normal; font-size: 7px; line-height: 1; opacity: .6; letter-spacing: .02em; }
.dock-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 10px; line-height: 1.5; font-weight: 500; color: var(--muted); }
.wish { margin: 0 var(--gutter) 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 40px; }
.wish-form { display: flex; gap: 8px; flex-wrap: wrap; }
.wish-form input { flex: 1; min-width: 200px; border: 1px solid var(--ink); border-radius: 999px; padding: 11px 16px; font-family: NantucketSound, system-ui, sans-serif; font-size: 14px; background: #fff; }
.wishes { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.wishes span { border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.wishes i { font-family: NantucketSoundMono, ui-monospace, monospace; font-style: normal; font-size: 8px; opacity: .7; }
.dl { margin: 0 var(--gutter) 24px; background: var(--ink); color: #fff; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 40px; align-items: center; border-radius: 4px; }
.dl-title { font-weight: 700; font-size: clamp(36px, 5vw, 72px); line-height: .95; }
.dl-buttons { display: flex; flex-direction: column; gap: 10px; max-width: 320px; justify-self: end; width: 100%; }
.dl-buttons a { padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 13px; text-align: center; text-decoration: none; }
.dl-main { background: var(--yellow); color: var(--ink) !important; font-size: 14px !important; padding: 14px 22px !important; }
.dl-alt { border: 1px solid #fff; color: #fff !important; }
.foot { display: flex; justify-content: space-between; padding: 12px var(--gutter) 24px; font-size: 10px; line-height: 1.5; color: var(--muted); flex-wrap: wrap; gap: 8px; }
.foot a { color: var(--muted); }

/* the island inventory: objects floating on the paper */
.isle { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(90px, auto); gap: 26px 24px; grid-auto-flow: dense; margin-top: 18px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; }
.c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.h1 { grid-row: span 1; } .h2 { grid-row: span 2; } .h3 { grid-row: span 3; } .h4 { grid-row: span 4; }
.it {
  --float: 0 1px 1px rgba(60, 45, 20, .08), 0 8px 14px -6px rgba(60, 45, 20, .22), 0 26px 40px -18px rgba(60, 45, 20, .34);
  --rk: 1;
  position: relative; min-width: 0; display: flex; flex-direction: column;
  border-radius: 14px; box-shadow: var(--float); color: var(--ink);
  rotate: calc(var(--r, 0deg) * var(--rk)); translate: var(--dx, 0px) var(--dy, 0px);
  transform: translate(calc(var(--px, 0) * var(--z, .6) * -10px), calc(var(--py, 0) * var(--z, .6) * -8px));
  transition: scale .45s cubic-bezier(.3, 1.6, .5, 1), box-shadow .45s, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.it:hover {
  scale: 1.035; z-index: 3;
  --float: 0 2px 2px rgba(60, 45, 20, .08), 0 16px 24px -10px rgba(60, 45, 20, .26), 0 44px 60px -24px rgba(60, 45, 20, .38);
}
.it.loose { box-shadow: none; align-items: center; justify-content: center; }
.it.loose .obj { box-shadow: var(--float); }
.it.cut { box-shadow: none; filter: drop-shadow(0 8px 10px rgba(60, 45, 20, .2)) drop-shadow(0 1px 1px rgba(60, 45, 20, .1)); }
.it.cut .obj { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lbl { position: absolute; top: 11px; left: 14px; z-index: 1; font-family: NantucketSoundMono, ui-monospace, monospace; font-size: 9px; line-height: 1; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .62; white-space: nowrap; pointer-events: none; }
.lbl-r { left: auto; right: 14px; }
.loose > .lbl { color: var(--muted); }
.caps { font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: .14em; font-feature-settings: "case"; }
.big { font-size: 22px; line-height: 1.1; font-weight: 700; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums slashed-zero; font-weight: 600; }
.dim { opacity: .62; }
.amber { color: #f0b860; } .green { color: #7fd09a; }
.hd { font-size: 11px; letter-spacing: .1em; color: #9fb0c3; }
.wf { display: block; max-width: 100%; min-width: 0; overflow: hidden; }
.wf > [data-word] { display: inline-block; white-space: nowrap; }

/* 001 quarterboard: a carved board with rounded ends */
.qb { border-radius: 999px; justify-content: center; align-items: center; padding: 6px 44px; color: #d4b263;
  background: #141a22 repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 11px);
  box-shadow: inset 0 0 0 3px #c9a95c, inset 0 0 0 6px #141a22, inset 0 0 0 7px rgba(201, 169, 92, .45), var(--float);
  font-size: 50px; font-weight: 600; font-stretch: 125%; letter-spacing: .12em; text-shadow: 0 1px 0 #6e5a2c; font-feature-settings: "case"; }
.lbl-out { top: -16px; color: var(--muted); text-shadow: none; }
/* the signs whose label sits on the paper keep that label inside their own grid space */
.qb, .road, .wet { margin-top: 18px; }
.qb .lbl-out { left: 40px; }
/* 002 ferry departures */
.ferry { background: #1d2a3a; color: #f4f3ef; padding: 36px 24px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 7px 16px; align-content: start; font-variant-numeric: tabular-nums; font-stretch: 87.5%; font-size: 18px; }
.ferry-title { grid-column: 1 / -1; font-size: 21px; font-stretch: 100%; margin-bottom: 4px; }
.ferry b { font-weight: 600; }
/* 003 bumper sticker */
.oval { width: min(230px, 94%); aspect-ratio: 23 / 15; border-radius: 50%; background: #fff; border: 5px solid #1d2a3a; display: flex; align-items: center; justify-content: center; padding: 0 18px; color: #1d2a3a; font-size: 84px; font-weight: 700; }
/* 004 licence plate */
.plate { background: linear-gradient(#fff, #f1efe9); border: 3px solid #13306b; border-radius: 18px; align-items: center; justify-content: center; color: #13306b; padding: 0 18px;
  box-shadow: inset 0 0 0 6px #fbfaf6, inset 0 0 0 7px rgba(19, 48, 107, .2), var(--float); }
.plate-state { color: #c8201c; font-size: 19px; font-weight: 600; font-style: italic; }
.plate .wf { font-size: 64px; line-height: .95; font-weight: 600; font-stretch: 82%; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.plate-motto { font-size: 10px; font-weight: 600; letter-spacing: .18em; margin-top: 4px; }
.bolt { position: absolute; top: 30px; width: 12px; height: 9px; border-radius: 50%; background: radial-gradient(#cfcbc2, #8f8b82); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
/* 005 tide table */
.tide { background: #fff; border-radius: 12px; padding: 40px 22px 22px; font-variant-numeric: tabular-nums slashed-zero; color: #1d2a3a; }
.punch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 13px; height: 13px; border-radius: 50%; background: #e8e2d6; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .3); }
.tide-title { font-size: 22px; font-weight: 600; }
.tide-date { font-size: 13px; color: #4f5a66; margin: 2px 0 16px; }
.tide-rows { display: grid; grid-template-columns: auto 1fr auto; gap: 9px 12px; font-size: 16px; line-height: 1.2; }
.tide-rows b { font-weight: 600; }
.tide-sun { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(29, 42, 58, .15); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; color: #4f5a66; line-height: 1.3; }
.tide-sun b { color: #1d2a3a; font-weight: 600; }
.tide-note { margin-top: auto; border-top: 1px solid #1d2a3a; padding-top: 12px; font-size: 12px; color: #4f5a66; line-height: 1.4; }
/* 006 scoreboard */
.score { background: #1b1b1b; color: #f6c14b; border: 4px solid #2e2e2e; border-radius: 18px; padding: 26px 22px 14px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 18px; align-items: center; text-align: center; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(246, 193, 75, .35); }
.team > span, .clock > span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: #fff; text-shadow: none; }
.team b { display: block; font-size: 92px; font-weight: 700; line-height: .9; }
.clock { display: flex; flex-direction: column; gap: 6px; }
.clock .per { font-size: 40px; font-weight: 600; line-height: 1; }
.clock .blink { font-size: 26px; font-weight: 600; color: #fff; }
/* 007 airport departures, in Mono */
.fids { background: #141a22; color: #f4f3ef; border-radius: 12px; padding: 36px 20px 16px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 7px 14px; align-content: center; white-space: nowrap; font-family: NantucketSoundMono, ui-monospace, monospace; font-size: 15px; }
.fids .hd { font-size: 10px; }
/* 008 lamppost poster */
.poster { background: #f2d34a; border-radius: 6px; padding: 34px 22px 20px; color: #1d2a3a; container-type: inline-size; }
.staple { position: absolute; top: 6px; width: 16px; height: 3px; border-radius: 1px; background: linear-gradient(#bdb9b0, #8a867d); }
.daff { font-size: min(58px, 21cqw); font-weight: 700; line-height: .86; margin: 8px 0 12px; }
.poster-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; }
/* 009 speed limit sign on its post; the lettering scales with the sign */
.it.loose.speed-tile { justify-content: flex-start; padding-top: 26px; }
.post { position: absolute; top: 70px; bottom: 0; left: 50%; translate: -50% 0; width: 12px; border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #7d7a73, #dcd9d1 40%, #a29f97 70%, #7d7a73); box-shadow: 0 8px 10px -6px rgba(60, 45, 20, .35); }
.it.loose .obj.speed { position: relative; width: min(150px, 84%); aspect-ratio: 4 / 5; container-type: inline-size; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border-radius: 10px;
  color: #141311; font-weight: 600; font-stretch: 78%; text-align: center;
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 8px #141311, 0 1px 1px rgba(60, 45, 20, .1), 0 12px 20px -8px rgba(60, 45, 20, .38); }
.speed .sl { font-size: 21cqw; line-height: .92; letter-spacing: .01em; }
.speed .sl-n { font-size: 56cqw; line-height: .82; margin-top: 7cqw; font-variant-numeric: tabular-nums; }
.sbolt { position: absolute; left: 50%; translate: -50% 0; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e4e1da, #8f8b82); }
.sbolt:first-child { top: 11px; } .sbolt:last-child { bottom: 11px; }
/* 010 chalkboard */
.chalk { background: #2d3a35 radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .06), transparent 60%); color: #f4f3ef; border: 9px solid #6b4a2b; border-radius: 16px; padding: 32px 20px 20px; font-variant-numeric: tabular-nums; }
.chalk .lbl { top: 9px; left: 12px; }
.chalk-title { font-size: 30px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.chalk-sub { font-size: 11px; letter-spacing: .1em; color: #b9c7bf; margin-bottom: 16px; }
.chalk-list { display: flex; flex-direction: column; gap: 9px; font-size: 17px; }
.chalk-list > div { display: flex; justify-content: space-between; gap: 10px; }
.chalk-list b { font-weight: 600; }
.chalk-note { margin-top: auto; font-size: 13px; color: #b9c7bf; font-style: italic; }
/* 011 mooring tag */
.mooring { width: 92px; height: 200px; border-radius: 46px; background: linear-gradient(160deg, #e4e4e1, #9c9c98); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #3a3a38; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.5; }
.hole { width: 12px; height: 12px; border-radius: 50%; background: #ebe5d9; margin-bottom: 10px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
/* 012 name tag */
.nametag { background: #fff; border-radius: 16px; overflow: hidden; }
.nt-head { background: #1c4fd6; color: #fff; padding: 9px 12px 7px; text-align: center; }
.nt-head b { display: block; font-size: 22px; font-weight: 700; line-height: 1; font-feature-settings: "case"; }
.nt-head span { font-size: 10px; font-weight: 500; }
.nt-name { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 14px; font-size: 34px; font-weight: 500; font-style: italic; }
.nt-lbl { left: auto; right: 12px; top: 8px; color: #fff; opacity: .8; }
/* 013 beach permit, 024 forecast, 025 wallet card: label, then two sides */
.permit, .forecast, .wallet { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 24px 12px; }
.permit { background: #e7b56b; border-radius: 22px; color: #1d2a3a; }
.forecast { background: #c9d3dc; border-radius: 30px; color: #1d2a3a; padding-left: 28px; padding-right: 28px; }
.forecast .big { font-weight: 600; } .forecast .big span { font-weight: 400; color: #4f5a66; }
.forecast .lbl { left: 28px; }
.fc-temp { font-size: 48px; font-weight: 400; font-variant-numeric: tabular-nums; }
.wallet { background: #5b7fc1; color: #fff; border-radius: 18px; }
/* 014 crossword clipping with torn edges */
.news { background: #f3f1ea; padding: 32px 20px 18px; gap: 10px;
  clip-path: polygon(0 1.5%, 9% 0, 21% 1.2%, 34% .2%, 47% 1.4%, 61% .1%, 74% 1.3%, 88% .3%, 100% 1.6%, 99.2% 14%, 100% 31%, 99.1% 49%, 100% 66%, 99.3% 83%, 100% 98.6%, 89% 100%, 76% 98.9%, 62% 99.8%, 49% 98.7%, 35% 99.9%, 22% 98.8%, 10% 99.7%, 0 98.4%, .8% 84%, 0 67%, .9% 50%, 0 33%, .7% 16%); }
.xw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #141311; padding: 2px; width: 172px; align-self: center; margin-top: 4px; }
.xw span { position: relative; background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding-top: 4px; font-size: 20px; font-weight: 600; line-height: 1; }
.xw span.cur { background: #fbe6a2; }
.xw i { position: absolute; top: 2px; left: 3px; font-size: 8px; font-style: normal; font-weight: 500; }
.clues { font-size: 11px; line-height: 1.45; color: #5e5a52; }
.clues b { color: #141311; }
/* 015 wristwatch, showing the time */
.it.loose.watch-tile { align-items: flex-end; padding-right: 14px; container-type: inline-size; }
@container (max-width: 290px) { .watch { scale: .8; transform-origin: 100% 50%; } }
.watch { position: relative; width: 220px; height: 220px; flex: none; border-radius: 50%; background: #fff; border: 12px solid #2a2926; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 3px #b9b6ae, var(--float) !important; }
.watch::before, .watch::after { content: ""; position: absolute; left: 50%; translate: -50% 0; width: 100px; height: 54px; background: #5a3b26; z-index: -1; }
.watch::before { top: -56px; border-radius: 10px 10px 0 0; }
.watch::after { bottom: -56px; border-radius: 0 0 10px 10px; }
.watch > span { position: absolute; font-size: 25px; font-weight: 600; line-height: 1; }
.w12 { top: 10px; left: 50%; translate: -50% 0; } .w6 { bottom: 10px; left: 50%; translate: -50% 0; }
.w3 { right: 13px; top: 50%; translate: 0 -50%; } .w9 { left: 13px; top: 50%; translate: 0 -50%; }
.watch > .wdate { right: 44px; top: 50%; translate: 0 -50%; border: 1px solid #141311; padding: 2px 4px; font-size: 12px; }
.watch > .wbrand { top: 48px; left: 50%; translate: -50% 0; font-size: 9px; letter-spacing: .14em; }
.hand { position: absolute; left: 50%; bottom: 50%; translate: -50% 0; transform-origin: 50% 100%; background: #141311; border-radius: 2px; }
.hand.hh { width: 4px; height: 54px; } .hand.mm { width: 3px; height: 80px; } .hand.ss { width: 1px; height: 88px; background: #c8201c; }
.pin { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #141311; translate: -50% -50%; }
/* 016 Nantucket Reds with pinked edges, and the hangtag */
.reds { background: #d9826c repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 6px); align-items: center; justify-content: center; border-radius: 4px 4px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.reds .lbl { color: #fff; }
.hangtag { position: relative; background: #f4f3ef; border-radius: 6px; padding: 26px 18px 14px; width: 204px; max-width: 86%; display: flex; flex-direction: column; gap: 6px; text-align: center; rotate: 4deg; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
.hangtag .caps { color: #4f5a66; font-size: 10px; }
.hangtag b { font-size: 26px; font-weight: 700; line-height: .98; text-wrap: balance; }
.eyelet { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 9px; height: 9px; border-radius: 50%; background: #d9826c; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3), 0 0 0 2px #c9c5bb; }
.ht-size { font-size: 12px; color: #4f5a66; border-top: 1px solid #d9826c; padding-top: 8px; font-variant-numeric: tabular-nums; }
/* 017 cranberry crate */
.crate { border-radius: 8px; align-items: center; justify-content: center;
  background: #c9b48a repeating-linear-gradient(0deg, transparent 0 44px, rgba(70, 45, 10, .22) 44px 47px); }
.handhole { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 66px; height: 16px; border-radius: 8px; background: #3d2e17; box-shadow: inset 0 3px 4px rgba(0, 0, 0, .5); }
.stencil { margin-top: 18px; font-size: 32px; font-weight: 700; letter-spacing: .06em; font-stretch: 112.5%; color: #7a1f2a; line-height: 1; text-align: center; mix-blend-mode: multiply; }
.stencil small { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .2em; font-weight: 600; font-stretch: 100%; }
/* 018 regatta results */
.regatta { background: #fff; border-radius: 10px; padding: 36px 24px 20px; font-variant-numeric: tabular-nums; }
.pushpin { position: absolute; top: 9px; left: 50%; width: 14px; height: 14px; border-radius: 50%; translate: -50% 0; background: radial-gradient(circle at 35% 35%, #ff7a6e, #c8201c 60%); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.rg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; white-space: nowrap; }
.rg-head b { font-size: 22px; font-weight: 600; } .rg-head span { font-size: 13px; color: #4f5a66; }
.rg { display: grid; grid-template-columns: auto 1fr 1fr auto auto; gap: 7px 18px; font-size: 15px; }
.rg .hd { color: #4f5a66; }
.rg b { font-weight: 600; }
/* 019 seed packet with a crimped top */
.seed { background: #d8c7a3 linear-gradient(rgba(61, 46, 23, .12), rgba(61, 46, 23, .12)) 0 0 / 100% 16px no-repeat; color: #3d2e17; padding: 30px 20px 18px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%; }
.seed .lbl { top: 22px; }
.seed .caps { margin-top: 10px; }
.seed-name { font-size: 50px; font-weight: 700; line-height: .88; margin: 8px 0 4px; }
.seed-latin { font-size: 16px; font-style: italic; }
.rose { width: 100%; height: 104px; margin: 10px 0 8px; }
.seed p { margin: 0; font-size: 12px; line-height: 1.45; }
.seed-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; }
/* 020 parking ticket with a perforated top */
.ticket { background: #f28c1b; padding: 26px 20px 18px; gap: 6px; color: #141311;
  -webkit-mask: radial-gradient(circle 5px at 50% 0, #0000 96%, #000) 50% 0 / 16px 100%;
          mask: radial-gradient(circle 5px at 50% 0, #0000 96%, #000) 50% 0 / 16px 100%; }
.tk-title { font-size: 30px; font-weight: 700; line-height: .95; }
.tk-body { font-size: 11px; line-height: 1.55; border-top: 1px solid #141311; padding-top: 8px; margin-top: 4px; white-space: pre-wrap; }
.tk-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.tk-foot b { font-size: 32px; font-weight: 700; }
/* 021 village sign */
.road { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; padding: 6px 24px; background: #f4f3ef; border: 3px solid #1d2a3a; border-radius: 14px; color: #1d2a3a; }
.road .wf { flex: 1 1 auto; font-size: 52px; font-weight: 600; letter-spacing: .02em; line-height: 1; font-stretch: 87.5%; font-feature-settings: "case"; }
.road-sub { flex: none; font-size: 15px; font-weight: 500; text-align: right; line-height: 1.25; font-variant-numeric: tabular-nums; }
.road-sub span { color: #4f5a66; }
/* 022 birthday cake */
.cake { background: #f7c6d0; border-radius: 28px 28px 10px 10px; align-items: center; justify-content: center; gap: 12px; overflow: hidden; padding-top: 20px; }
.frosting { position: absolute; top: 0; left: 0; right: 0; height: 30px; background: radial-gradient(circle at 20px 6px, #fff 13px, transparent 14px) 0 0 / 40px 30px repeat-x, linear-gradient(#fff, #fff) 0 0 / 100% 7px no-repeat; }
.cake .lbl { top: 36px; color: #8a3550; }
.candles { display: flex; gap: 30px; margin-top: 34px; }
.candles i { position: relative; width: 6px; height: 30px; background: var(--c); border-radius: 3px; }
.candles i::after { content: ""; position: absolute; top: -13px; left: -3px; width: 12px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #f6c14b; transform-origin: 50% 100%; }
.cake-msg { font-size: 30px; font-weight: 600; font-style: italic; line-height: 1.02; color: #b0284f; text-align: center; text-shadow: 0 1px 0 #fff; padding: 0 12px; }
/* 023 spelling test: every row is one 28 px rule, with the writing sitting on it */
.paper { --top: 32px; border-radius: 4px; padding: var(--top) 22px 0 52px; font-size: 16px; color: #13306b;
  background: linear-gradient(#fff, #fff) 0 0 / 100% var(--top) no-repeat, #fff repeating-linear-gradient(transparent 0 27px, #cfe0f3 27px 28px) 0 var(--top);
  box-shadow: inset 42px 0 0 #fff, inset 43px 0 0 #f0a3a3, var(--float); }
.paper .lbl { left: 52px; }
.holes { position: absolute; left: 13px; top: 0; bottom: 0; width: 14px;
  background: radial-gradient(circle 6px, #e8e2d6 92%, #0000) 0 14% / 14px 14px no-repeat, radial-gradient(circle 6px, #e8e2d6 92%, #0000) 0 50% / 14px 14px no-repeat, radial-gradient(circle 6px, #e8e2d6 92%, #0000) 0 86% / 14px 14px no-repeat; }
.sp-row { flex: none; height: 28px; display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 3px; line-height: 1; font-style: italic; }
.sp-head { position: relative; font-style: normal; font-weight: 600; color: #141311; }
.sp-grade { position: absolute; right: -2px; bottom: 1px; color: #c8201c; font-size: 17px; font-weight: 700; rotate: -8deg; border: 2px solid #c8201c; border-radius: 50%; padding: 5px 9px 4px; line-height: 1; }
.tick { flex: none; width: 15px; height: 13px; margin: 0 4px 1px 0; overflow: visible; }
.tick path { fill: none; stroke: #c8201c; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sp-note { color: #c8201c; font-weight: 700; }
.sp-note > span { rotate: -3deg; transform-origin: 0 100%; }
/* 026 fortune slip */
.fortune { background: #fff; padding: 10px 20px; display: flex; flex-direction: column; gap: 4px; text-align: center; border-radius: 2px; max-width: 100%; }
.fortune span { font-size: 14px; font-weight: 500; color: #c8201c; }
.fortune small { font-size: 10px; color: #5e5a52; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
/* 027 wet paint sign, taped up */
.wet { background: #f6c14b; border: 3px solid #141311; border-radius: 8px; align-items: center; justify-content: center; padding: 6px 24px; }
.qb .wf, .road .wf, .wet .wf { line-height: 1.15; }
.wet .lbl-out { left: 74px; }
.wet .wf { font-size: 52px; font-weight: 700; line-height: 1; font-feature-settings: "case"; }
.tape { position: absolute; top: -9px; width: 72px; height: 22px; background: rgba(255, 255, 255, .58); rotate: var(--tr); box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
/* 028 steamship placard */
.placard { background: #13306b; color: #fff; border-radius: 18px; padding: 36px 24px 18px; }
.rivet { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e9eef8, #8f9bb3); }
.placard .lbl { left: 26px; top: 13px; }
.pl-top { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-feature-settings: "case"; color: #f6c14b; margin-bottom: 10px; }
.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.pl-list li { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.pl-list i { font-family: NantucketSoundMono, ui-monospace, monospace; font-style: normal; font-size: 9px; font-weight: 500; opacity: .65; width: 16px; flex: none; }
/* 029 recipe card with fractions */
.recipe { border-radius: 6px; padding: 30px 22px 16px; color: #2a2926; font-variant-numeric: diagonal-fractions;
  background: #fffdf7 linear-gradient(#e9a0a0, #e9a0a0) 0 62px / 100% 2px no-repeat; }
.rc-title { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.rc-list { list-style: none; margin: 0; padding: 0; font-size: 17px; line-height: 27px; font-style: italic; font-weight: 500;
  background: repeating-linear-gradient(transparent 0 26px, #cfe0f3 26px 27px); }
.rc-note { margin-top: auto; font-size: 12px; color: #6a6358; }

/* motion: a slow bob, the departure boards blink, the candles flicker */
@keyframes seg { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bob {
  from { translate: var(--dx, 0px) var(--dy, 0px); rotate: calc(var(--r, 0deg) * var(--rk)); }
  to { translate: var(--dx, 0px) calc(var(--dy, 0px) - var(--lift, 7px)); rotate: calc((var(--r, 0deg) + var(--sway, .8deg)) * var(--rk)); }
}
@keyframes flicker { 0%, 100% { scale: 1 1; opacity: 1; } 30% { scale: .86 1.12; } 60% { scale: 1.08 .9; opacity: .85; } }
@media (prefers-reduced-motion: no-preference) {
  .it { animation: bob var(--t, 7s) ease-in-out var(--d, 0s) infinite alternate; }
  .it:hover { animation-play-state: paused; }
  .blink { animation: seg 1s steps(2, jump-none) infinite; }
  .blink.slow { animation-duration: 1.6s; }
  .candles i::after { animation: flicker 1.3s ease-in-out infinite; }
  .candles i:nth-child(2)::after { animation-delay: -.4s; } .candles i:nth-child(3)::after { animation-delay: -.9s; }
}

@media (max-width: 1100px) {
  .isle { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .fids { font-size: 13px; gap: 6px 10px; padding-left: 16px; padding-right: 16px; }
  .team b { font-size: 72px; }
  .c3, .c4, .c5 { grid-column: span 4; } .c6 { grid-column: span 8; }
}
@media (max-width: 720px) {
  .isle { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
  .c3, .c4, .c5, .c6 { grid-column: span 4; }
  .it { --rk: .5; }
  .permit, .forecast, .wallet { align-items: flex-end; }
  .fids { font-size: 12px; gap: 6px 9px; padding-left: 14px; padding-right: 14px; }
  .team b { font-size: 64px; }
  .score { gap: 6px 12px; padding-left: 16px; padding-right: 16px; }
  .rg { gap: 6px 10px; font-size: 13px; }
  .rg-head { white-space: normal; flex-wrap: wrap; }
}

/* install: embed code, Google Fonts style */
.install { background: var(--ink); color: #f4f3ee; border-radius: 16px; padding: clamp(14px, 2vw, 22px); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 1px rgba(60, 45, 20, .08), 0 22px 40px -22px rgba(60, 45, 20, .45); }
.ins-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-tabs button { border: 1px solid #4a4741; background: transparent; color: #f4f3ee; border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ins-tabs button:hover { border-color: #f4f3ee; }
.ins-tabs button[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.ins-panel { display: flex; flex-direction: column; gap: 14px; }
.install [hidden] { display: none !important; }
.ins-web { display: flex; flex-direction: column; gap: 18px; }
.ins-download { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ins-download .ins-kit { font-size: 14px; padding: 12px 20px; }
.ins-download .ins-note { margin: 0; }
.ins-tree { line-height: 1.5; color: #d9d5cc; }
.install .ins-note { max-width: 680px; }
.ins-note code { white-space: nowrap; }
.ins-step { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ins-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ins-head > span { font-size: 10px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: #b9b4aa; margin-right: auto; }
.copy, .ins-kit { border: 0; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.copy { background: #f4f3ee; color: var(--ink); min-width: 74px; }
.copy.done { background: #7fd09a; }
.ins-kit { background: var(--yellow); color: var(--ink) !important; }
.ins-code { margin: 0; background: #1f1e1c; border: 1px solid #34322e; border-radius: 10px; padding: 14px 16px; overflow-x: auto;
  font-family: NantucketSoundMono, ui-monospace, monospace; font-size: 13px; line-height: 1.6; color: #f4f3ee; white-space: pre; tab-size: 2; }
.ins-code .s { color: #f5c76b; } .ins-code .c { color: #8d887e; } .ins-code .k { color: #9ec3ff; }
.ins-note { margin: 0; font-size: 13px; line-height: 1.5; color: #b9b4aa; max-width: 680px; }
.ins-note code { font-family: NantucketSoundMono, ui-monospace, monospace; font-size: 12px; color: #f4f3ee; }
.ins-desktop ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; max-width: 680px; }
.ins-desktop a { color: var(--yellow); }

@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t2, .t3 { grid-column: span 3; } .t4, .t5, .t6, .t7 { grid-column: span 6; }
  .glass-wrap { grid-template-columns: 1fr; }
  .glass { border-right: 0; border-bottom: 1px solid var(--ink); }
  .c-weight { left: 0; } .c-glyphs { right: 0; } .c-dl { left: 0; }
}
@media (max-width: 560px) {
  /* the hero flows top to bottom instead of being layered */
  .hero { height: auto; padding: 56px 0 20px; }
  .hero-stage { position: relative; left: auto; top: auto; transform: none; margin: 150px auto 130px; width: fit-content; max-width: calc(100% - 24px); }
  .callout span, .callout a { font-size: 12px; }
  .c-weight { left: 0; top: -76px; } .c-glyphs { right: -8px; top: -128px; }
  .c-tiny { left: 0; bottom: -66px; } .c-dl { left: auto; right: -8px; bottom: -112px; }
  .hero-foot { position: relative; left: auto; right: auto; bottom: auto; padding: 0 16px; flex-direction: column; align-items: stretch; }
  .hero-controls { align-items: stretch; }
  .controls-row { justify-content: space-between; }
  .slider { width: 100%; }
  .inv-input { flex-direction: column; align-items: stretch; border-radius: 18px; }
  .inv-input span { white-space: normal; line-height: 1.4; }
  .t2, .t3 { grid-column: span 6; }
  .dl-buttons { justify-self: stretch; max-width: none; }
}
