/* Boards: how a board is drawn. Used by the full-screen page, the editor's preview and the samples on the Home page.
   A board sits in a .frame, which is always 16 by 9. Every size inside is in "em", and 1em is one hundredth of the
   frame's width (set here with a container unit, and again by board.js for older TV browsers), so a board is the same
   picture at any size. Order: the frame; the six looks (colours and lettering only); the parts every kind shares;
   each kind (menu, office TV, whiteboard, banner); the full-screen page. */

.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; background: #000; }
.board { position: absolute; inset: 0; font-size: 1cqw; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--body); overflow: hidden; text-align: left; }
.board *, .board *::before, .board *::after { box-sizing: border-box; }
/* (written with the frame in front so no rule of the website around a board can reach inside it) */
.frame .board h1, .frame .board h2, .frame .board p, .frame .board ul, .frame .board li { margin: 0; padding: 0; }
.board ul { list-style: none; }

/* ---------- the looks ---------- */
/* Painted paper: brown kraft paper with a little grain and two soft folds, brush lettering in white paint with a painted
   shadow, and painter's tape on the four corners (drawn over the board by ::after). */
.look-kraft { --bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(90deg, transparent 33%, rgba(0, 0, 0, .07) 33.2%, transparent 33.6%, transparent 66%, rgba(255, 255, 255, .08) 66.2%, transparent 66.6%), linear-gradient(175deg, #a97a45, #96693a); --solid: #8a5f33; --ink: #fffdf5; --muted: #ffeed6; --accent: #fffdf5; --accent2: #ffe08a; --head: "Pacifico", "Brush Script MT", cursive; --body: "Archivo", Arial, sans-serif; --hw: 400; --case: none; --track: 0; --glow: .05em .06em 0 rgba(60, 30, 5, .45); }
.frame .board.look-kraft::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='none'%3E%3Cg fill='%232f7fd1' opacity='.92'%3E%3Crect x='-3' y='2.6' width='13' height='3.4' transform='rotate(-40 3.5 4.3)'/%3E%3Crect x='150' y='2.6' width='13' height='3.4' transform='rotate(40 156.5 4.3)'/%3E%3Crect x='-3' y='84' width='13' height='3.4' transform='rotate(40 3.5 85.7)'/%3E%3Crect x='150' y='84' width='13' height='3.4' transform='rotate(-40 156.5 85.7)'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; pointer-events: none; z-index: 3; }
.look-kraft .b-title, .look-kraft .b-big { line-height: 1.4; }
.frame .board.look-kraft .b-sub { margin-top: .9em; }
.look-kraft .b-top { padding-top: 1.6em; }
.look-kraft .b-top { border-bottom-style: dashed; }
.look-chalk { --bg: radial-gradient(120% 90% at 30% 20%, #2b4d3e, #1a3327 70%); --solid: #1a3327; --ink: #f4f1e6; --muted: #cfdccf; --accent: #ffd95a; --accent2: #ffb3a3; --head: "Patrick Hand", "Comic Sans MS", cursive; --body: "Patrick Hand", "Comic Sans MS", cursive; --hw: 400; --case: none; --track: .01em; }
.look-neon { --bg: radial-gradient(90% 80% at 50% 0%, #25103f, #0b0716 70%); --solid: #0b0716; --ink: #f3eaff; --muted: #c9b8e6; --accent: #ff5fb4; --accent2: #5ef2ff; --head: "Bungee", Impact, sans-serif; --body: "Archivo", Arial, sans-serif; --hw: 400; --case: uppercase; --track: .02em; --glow: 0 0 .25em currentColor; }
.look-paper { --bg: #e9dcc3; --solid: #e9dcc3; --ink: #2a1c12; --muted: #5b4635; --accent: #a8201a; --accent2: #1f5c3a; --head: "Fraunces", Georgia, serif; --body: "Fraunces", Georgia, serif; --hw: 900; --case: none; --track: 0; }
.look-midnight { --bg: linear-gradient(160deg, #13294a, #0a1424); --solid: #0a1424; --ink: #f2ead8; --muted: #b9c6da; --accent: #e8bd5f; --accent2: #9cc4f2; --head: "Archivo", Arial, sans-serif; --body: "Archivo", Arial, sans-serif; --hw: 800; --case: uppercase; --track: .03em; --stretch: 75%; }
.look-sunrise { --bg: linear-gradient(170deg, #ffc55c, #ff8f6b 70%, #ff7a7a); --solid: #ff9d66; --ink: #2b0f1e; --muted: #4a1c30; --accent: #5b1647; --accent2: #2b0f1e; --head: "Archivo", Arial, sans-serif; --body: "Archivo", Arial, sans-serif; --hw: 900; --case: none; --track: -.01em; --stretch: 115%; --onaccent: #fff3d6; }
.look-party { --bg: radial-gradient(circle at 20% 20%, #7c3aed 0, #5b21b6 45%, #3b0f8a 100%); --solid: #4c1d95; --ink: #ffffff; --muted: #e6d9ff; --accent: #ffd60a; --accent2: #ff8cc0; --head: "Bungee", Impact, sans-serif; --body: "Archivo", Arial, sans-serif; --hw: 400; --case: uppercase; --track: .02em; }

/* ---------- parts every kind shares ---------- */
.b-top { flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: 3em; padding: 2.6em 4em 1.3em; border-bottom: .35em solid var(--accent); }
.b-title { font: var(--hw) 4.4em/1 var(--head); font-stretch: var(--stretch, 100%); text-transform: var(--case); letter-spacing: var(--track); color: var(--ink); text-shadow: var(--glow, none); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame .board .b-side { flex: 1; min-width: 0; text-align: right; font: 700 2.1em/1.1 var(--body); color: var(--accent2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-clock { flex: none; font: 700 3em/1 var(--body); color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-main { flex: 1; min-height: 0; overflow: hidden; padding: 2em 4em 1.4em; }
.b-main > * { font-size: calc(var(--fit, 1) * 1em); }
.frame .board .b-foot { flex: none; padding: .55em 2em; background: var(--accent); color: var(--onaccent, var(--solid)); font: var(--hw) 2.1em/1.15 var(--head); font-stretch: var(--stretch, 100%); text-transform: var(--case); letter-spacing: var(--track); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame .board .b-credit { position: absolute; right: .8em; top: .6em; padding: .25em .7em; border-radius: 1em; background: rgba(0, 0, 0, .45); color: #fff; font: 600 .95em/1.2 "Archivo", Arial, sans-serif; letter-spacing: .04em; }

/* the bottom band taking turns: every line sits in the same place and only the one that is "on" shows */
.frame .board .b-foot[data-turns] { display: grid; }
.b-foot[data-turns] span { grid-area: 1 / 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: opacity .9s; }
.b-foot[data-turns] span.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .b-foot[data-turns] span { transition: none; } }

/* ---------- menu ---------- */
.b-cols { column-count: var(--cols, 3); column-gap: 4.5em; height: 100%; }
.b-sec { break-inside: avoid; padding-bottom: 1.6em; }
.frame .board .b-sec h2 { margin-bottom: .4em; }
.b-sec h2 { font: var(--hw) 2.7em/1 var(--head); font-stretch: var(--stretch, 100%); text-transform: var(--case); letter-spacing: var(--track); color: var(--accent); text-shadow: var(--glow, none); margin-bottom: .4em; }
.frame .board .b-sec li { margin-bottom: .85em; break-inside: avoid; }
.b-row { display: flex; align-items: baseline; gap: .5em; font: 700 1.95em/1.15 var(--body); }
.b-dots { flex: 1; min-width: 1em; border-bottom: .1em dotted var(--muted); transform: translateY(-.2em); }
.b-price { color: var(--accent2); white-space: nowrap; }
/* an item's small tag, a sold-out item, a section outside its hours, the Hours block */
.b-itag { flex: none; align-self: center; padding: .2em .55em; border: .1em solid var(--accent); border-radius: 1em; color: var(--accent); font: 700 .5em/1 "Archivo", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.b-sec li.is-out .b-name { text-decoration: line-through; opacity: .6; } .b-sec li.is-out .b-text { opacity: .5; }
.b-price.b-out { font-size: .62em; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.b-sec { transition: opacity 1s; } .b-sec.is-dim { opacity: .34; }
.b-hours .b-row { font-weight: 500; font-size: 1.6em; }
.frame .board.kind-menu .b-text { font: 400 1.3em/1.3 var(--body); color: var(--muted); margin-top: .1em; }

/* ---------- office TV: one notice at a time ---------- */
.b-slides { position: relative; height: 100%; }
.b-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.b-slide.is-on { opacity: 1; visibility: visible; }
.frame .board /* a big number (or the days left until a date), a quote, and the dots that show whose turn it is */
.frame .board .b-slide-number { align-items: flex-start; }
.frame .board .b-figure { font: var(--hw) 17em/.95 var(--head); font-stretch: var(--stretch, 100%); color: var(--accent); text-shadow: var(--glow, none); }
.frame .board .b-slide-number .b-text { font-size: 3.4em; margin-top: .2em; color: var(--accent2); font-weight: 600; }
.frame .board .b-quote { margin: 0; padding-left: .5em; border-left: .14em solid var(--accent); font: 500 4.3em/1.2 var(--body); color: var(--ink); max-width: 20em; }
.frame .board .b-quote::before { content: "\201C"; } .frame .board .b-quote::after { content: "\201D"; }
.frame .board .b-who { font: 700 2.2em/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); margin-top: .9em; text-shadow: none; }
.frame .board .b-pips { position: absolute; left: 4em; bottom: 6.4em; display: flex; gap: .7em; }
.b-pips i { width: 1.1em; height: 1.1em; border-radius: 50%; border: .16em solid var(--muted); transition: background-color .5s; } .b-pips i.is-on { background: var(--accent); border-color: var(--accent); }
.b-tag { font: 700 1.8em/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent2); margin-bottom: .7em; }
.b-slide h2 { font: var(--hw) 6.2em/1.02 var(--head); font-stretch: var(--stretch, 100%); text-transform: var(--case); letter-spacing: var(--track); color: var(--accent); text-shadow: var(--glow, none); }
.frame .board .b-slide .b-text { font: 400 2.9em/1.3 var(--body); color: var(--ink); margin-top: .5em; max-width: 26em; }

/* ---------- whiteboard: sticky notes ---------- */
.b-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2em 2.4em; align-content: start; }
.b-note { min-height: 9.5em; padding: 1.2em 1.3em; color: #2a1c12; box-shadow: .3em .5em .9em rgba(0, 0, 0, .3); transform: rotate(calc(var(--tilt, 0) * 1deg)); display: flex; align-items: center; }
.b-note span { font: 400 2.3em/1.15 "Patrick Hand", "Comic Sans MS", cursive; overflow-wrap: anywhere; }
.b-note-yellow { background: #ffe66d; } .b-note-pink { background: #ffb3c7; } .b-note-blue { background: #a8dcff; } .b-note-green { background: #b9ee9f; }

/* ---------- banner ---------- */
.b-banner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4em; z-index: 1; }
/* one row: a big painted picture, the words, a big number. The words shrink to the room the other two leave (board.js) */
.b-line { display: flex; align-items: center; justify-content: center; gap: 3em; width: 100%; }
.b-words { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.frame .board .b-over { font: 900 2.5em/1.1 "Archivo", Arial, sans-serif; font-stretch: 110%; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: .4em; }
.frame .board .b-num { flex: none; font: 400 19em/.9 "Bungee", Impact, sans-serif; color: var(--accent2); text-shadow: .035em .045em 0 var(--accent); transform: rotate(-6deg); }
.b-pic { flex: none; width: 19em; height: auto; color: var(--accent); transform: rotate(-5deg); overflow: visible; }
.b-pic .two { fill: var(--accent2); }
.b-art .line, .b-pic .line { fill: none; stroke: var(--accent2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
/* lettering of the big words. The small lines take the opposite style: block capitals beside script, script beside block letters */
.letter-script .b-big { font-family: "Pacifico", "Brush Script MT", cursive; font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.4; }
.letter-block .b-big { font-family: "Bungee", Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.letter-marker .b-big { font-family: "Permanent Marker", "Comic Sans MS", cursive; font-weight: 400; text-transform: none; letter-spacing: .01em; line-height: 1.15; }
.letter-bubble .b-big { font-family: "Chewy", "Comic Sans MS", cursive; font-weight: 400; text-transform: none; letter-spacing: .03em; line-height: 1.1; }
.letter-serif .b-big { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-style: italic; text-transform: none; letter-spacing: 0; line-height: 1.1; }
.frame .board .letter-block .b-over, .frame .board .letter-block .b-sub, .frame .board .letter-marker .b-over { font-family: "Pacifico", "Brush Script MT", cursive; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: 0; }
.frame .board .letter-block .b-over, .frame .board .letter-marker .b-over { font-size: 3.2em; }
.b-big { font: var(--hw) 11em/1.02 var(--head); font-stretch: var(--stretch, 100%); text-transform: var(--case); letter-spacing: var(--track); color: var(--accent); text-shadow: var(--glow, .06em .06em 0 rgba(0, 0, 0, .25)); white-space: nowrap; }
.frame .board .b-sub { font: 600 3.3em/1.25 var(--body); color: var(--ink); margin-top: .6em; max-width: 24em; }
.frame .board .b-count { font: 800 3em/1.2 var(--body); color: var(--accent2); margin-top: 1em; }
.b-count:empty { display: none; }
.b-fx { position: absolute; inset: 0; overflow: hidden; }
.b-fx i { position: absolute; top: -8%; left: calc(var(--n) * 2.8% + 1%); }
/* painted decorations: they sit still. The first paint is the accent; every third is the second paint; class "two" parts are always the other one */
.b-art { position: absolute; height: auto; color: var(--accent); transform: rotate(var(--r, 0deg)); overflow: visible; }
.b-art:nth-child(3n+2) { color: var(--accent2); } .b-art .two { fill: var(--accent2); } .b-art:nth-child(3n+2) .two { fill: var(--accent); } .b-art:nth-child(3n+2) .line { stroke: var(--accent); }
.b-fx-checks::before { content: ""; position: absolute; inset: 1.4em; padding: 2.5em; background: repeating-conic-gradient(var(--accent) 0 25%, var(--accent2) 0 50%) 0 0 / 5em 5em; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.frame .board .b-fx-checks ~ .b-banner { padding: 7em; }
/* paint colours for a banner: the big words and the decorations use these two instead of the look's own */
.paint-pinkblue { --accent: #ff7ab8; --accent2: #9be0ff; } .paint-redwhite { --accent: #ff4b3e; --accent2: #ffffff; } .paint-gold { --accent: #ffcf3f; --accent2: #17120c; }
.paint-green { --accent: #7ed957; --accent2: #fff3d6; } .paint-purple { --accent: #c9a0ff; --accent2: #5ee6d0; } .paint-orange { --accent: #ff9a3c; --accent2: #1d2f6f; }
.b-banner[class*="paint-"]:not(.paint-look) .b-big { text-shadow: .045em .055em 0 var(--accent2); }
.b-fx-confetti i { width: 1em; height: 1.7em; background: var(--accent); animation: fx-fall 7s linear infinite; animation-delay: calc(var(--n) * -.41s); }
.b-fx-confetti i:nth-child(3n) { background: var(--accent2); animation-duration: 9s; } .b-fx-confetti i:nth-child(3n+1) { background: var(--ink); animation-duration: 6s; width: .8em; height: .8em; border-radius: 50%; }
.b-fx-balloons i { top: auto; bottom: -30%; left: calc(var(--n) * 11% + 3%); width: 7em; height: 9em; border-radius: 50% 50% 48% 48%; background: var(--accent2); opacity: .85; animation: fx-rise 14s linear infinite; animation-delay: calc(var(--n) * -1.7s); }
.b-fx-balloons i:nth-child(2n) { background: var(--accent); animation-duration: 18s; }
.b-fx-balloons i::after { content: ""; position: absolute; left: 50%; top: 100%; width: .12em; height: 7em; background: var(--muted); }
@keyframes fx-fall { to { transform: translateY(70em) rotate(720deg); } }
@keyframes fx-rise { to { transform: translateY(-95em); } }
@media (prefers-reduced-motion: reduce) { .b-fx { display: none; } .b-slide { transition: none; } }

/* ---------- on paper (the print page) ----------
   Each .sheet is one letter page, landscape, less a quarter-inch edge all round (10.5 by 8 inches). All the sheets show
   the same wide board, each moved along by its own number of pages, so side by side they make one long banner. On the
   screen the row of sheets is shown small (board.js scales it to the window); on paper each sheet is a page. */
@page { size: letter landscape; margin: .25in; }
body.printing { margin: 0; background: #4a4640; font: 500 15px/1.5 "Archivo", Arial, sans-serif; color: #fff; }
.print-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: #16120f; }
.print-bar h1 { flex: 1 1 100%; margin: 0; font: 900 1.5rem/1.1 "Archivo", Arial, sans-serif; font-stretch: 112%; }
.print-bar p { flex: 1 1 100%; margin: 0; max-width: 70em; color: #e9e2d3; }
.print-bar select, .print-bar button { font: 700 15px/1 "Archivo", Arial, sans-serif; padding: 11px 14px; border: 2px solid #fff; border-radius: 9px; background: #fff; color: #16120f; cursor: pointer; min-height: 44px; }
.print-bar .print-go { background: #ffd60a; border-color: #ffd60a; }
.print-bar :focus-visible { outline: 3px solid #ffd60a; outline-offset: 3px; }
.print-check { display: inline-flex; align-items: center; gap: 8px; } .print-check input { width: 20px; height: 20px; }
.sheets-box { padding: 20px; overflow: hidden; }
.sheets { display: flex; gap: 12px; width: max-content; transform-origin: 0 0; }
.sheet { position: relative; flex: none; width: 10.5in; height: 8in; overflow: hidden; background: #fff; }
.sheet-in { position: absolute; top: 0; left: calc(var(--i) * -10.5in); width: calc(var(--pages) * 10.5in); height: 8in; }
.sheet-in .frame { aspect-ratio: auto; height: 100%; background: #fff; }
.printing .board, .printing .board * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.printing .frame .board .b-credit, .printing .frame .board.look-kraft::after, .printing .b-fx-confetti, .printing .b-fx-balloons { display: none; }
/* no background, dark paint: for kraft or coloured paper. A banner's chosen paint colours are kept. */
.saver .board { --bg: #fff; --solid: #fff; --ink: #2b1a0c; --muted: #4a3524; --accent: #2b1a0c; --accent2: #a8201a; --onaccent: #fff; --glow: none; }
@media print {
	body.printing { background: #fff; } .print-bar { display: none; } .sheets-box { padding: 0; overflow: visible; }
	.sheets { display: block; transform: none !important; width: auto; } .sheets-box { height: auto !important; }
	.sheet { break-after: page; page-break-after: always; } .sheet:last-child { break-after: auto; page-break-after: auto; }
}

/* ---------- the full-screen page ---------- */
body.tv { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #000; overflow: hidden; }
body.tv main { width: min(100vw, 177.78vh); }
body.tv.idle { cursor: none; }
.tv-hint { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; padding: 10px 16px; border-radius: 999px; background: rgba(0, 0, 0, .8); color: #fff; font: 500 14px/1.3 "Archivo", Arial, sans-serif; white-space: nowrap; transition: opacity .4s; z-index: 5; }
.tv-hint a { color: #ffd95a; }
.tv-hint b { display: inline-block; padding: 1px 7px; border: 1px solid #fff; border-radius: 4px; }
body.tv.idle .tv-hint { opacity: 0; pointer-events: none; }
body.tv.idle .tv-hint:focus-within { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) { .tv-hint { white-space: normal; text-align: center; width: calc(100% - 24px); } }
