:root {
  --paper: #efe6d2;
  --paper-light: #f7f1e1;
  --paper-dark: #e2d6bb;
  --ink: #221d17;
  --ink-soft: #5d5346;
  --pencil: #6f6a63;
  --oxblood: #7d2219;
  --marker: #f6d75a;
  --baize: #25382f;
  --baize-dark: #1a2922;
  --manila: #d9bd83;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --type: "Special Elite", "Courier New", monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 .1  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink);
  background: var(--grain), radial-gradient(ellipse at 50% 30%, var(--paper-light), var(--paper) 55%, var(--paper-dark));
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

.btn-primary {
  font-family: var(--type); font-size: 16px; letter-spacing: .04em; padding: 14px 22px 11px;
  background: var(--ink); color: var(--paper-light); border: 0; border-radius: 2px;
  box-shadow: 3px 3px 0 var(--oxblood); transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--oxblood); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--oxblood); }
.btn-quiet {
  font-family: var(--type); font-size: 13px; letter-spacing: .05em; background: none; border: 0; padding: 6px 2px;
  color: var(--ink-soft); border-bottom: 1px dashed currentColor;
}
.btn-quiet:hover { color: var(--oxblood); }

/* ---------- the walk-in ---------- */
#intro { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center start; transition: opacity .9s ease, visibility .9s; }
#intro.leaving { opacity: 0; visibility: hidden; }
#arena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-flat { display: none; position: absolute; bottom: 0; left: 50%; width: min(760px, 96vw); transform: translateX(-50%); opacity: .9; }
#intro.flat #arena { display: none; }
#intro.flat .intro-flat { display: block; }
.intro-copy {
  position: relative; max-width: 460px; padding: 28px 34px 26px; margin: 0 0 4vh 5vw; text-align: left;
  background: color-mix(in srgb, var(--paper-light) 88%, transparent); backdrop-filter: blur(3px);
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px;
  transition: opacity .5s, transform .8s;
}
#intro.walking .intro-copy, #intro.walking .intro-foot { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.eyebrow { font-family: var(--type); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; color: var(--oxblood); }
.intro-copy h1 { font-weight: 500; font-size: clamp(46px, 6vw, 72px); line-height: 1; margin: 0 0 14px; letter-spacing: -.01em; }
.memorial { margin: 0 0 22px; color: var(--ink-soft); font-size: 17.5px; line-height: 1.5; }
.memorial p { margin: 0 0 10px; }
.memorial p:first-child { color: var(--ink); font-weight: 500; }
.signature { font-family: var(--hand); font-size: 30px; line-height: 1; color: var(--ink); margin: 16px 0 0 !important; }
.signature span { display: block; margin-top: 4px; font-family: var(--type); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.memorial-line { font-family: var(--type); font-size: 13px !important; letter-spacing: .06em; color: var(--oxblood); }
.intro-copy .btn-quiet { display: block; margin: 16px 0 0; }
.intro-foot { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font-family: var(--type); font-size: 11.5px; color: var(--ink-soft); transition: opacity .5s; }

/* ---------- frame ---------- */
#app { height: 100%; display: flex; flex-direction: column; animation: arrive .9s ease both; }
@keyframes arrive { from { opacity: 0; } }
.masthead {
  display: flex; align-items: center; gap: 28px; padding: 10px 28px 8px;
  border-bottom: 3px double var(--ink);
}
.wordmark { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.wm-small { font-family: var(--type); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.wm-big { font-size: 30px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.legend { margin: 0 auto 0 0; display: flex; gap: 22px; font-size: 15.5px; }
.legend-ink { font-weight: 500; background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); }
.legend-say { color: var(--ink-soft); font-style: italic; }

main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 44%); }

/* ---------- the floor (conversation) ---------- */
.floor { display: flex; flex-direction: column; min-height: 0; position: relative; }
.stage { position: relative; flex: none; height: clamp(120px, 22vh, 210px); overflow: hidden; border-bottom: 1px solid var(--ink); transition: height .5s ease; }
.stage img { position: absolute; left: 50%; top: 0; height: 150%; transform: translateX(-50%); }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0, transparent 22%, transparent 78%, var(--paper) 100%); pointer-events: none; }
.floor.talking .stage { height: clamp(90px, 14vh, 140px); }
.stage-status {
  position: absolute; z-index: 1; right: 20px; bottom: 8px; margin: 0; padding: 3px 10px 1px;
  font-family: var(--type); font-size: 12.5px; letter-spacing: .06em; color: var(--ink-soft);
  background: var(--paper-light); border: 1px solid var(--ink-soft); transform: rotate(-1.2deg);
}
.stage-status.busy::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.transcript { flex: 1; min-height: 0; overflow-y: auto; padding: 22px clamp(18px, 5vw, 64px) 12px; scroll-behavior: smooth; }
.transcript:empty { display: none; }

.turn-q {
  width: fit-content; max-width: 34em; margin: 18px 0 16px auto; padding: 12px 18px 9px; position: relative;
  font-family: var(--type); font-size: 16px; line-height: 1.45;
  background: #fbf7ea; border: 1px solid #cdbf9d; box-shadow: 2px 3px 0 rgba(34, 29, 23, .13); transform: rotate(.5deg);
  background-image: repeating-linear-gradient(transparent 0 23px, rgba(70, 110, 160, .16) 23px 24px); background-position: 0 9px;
}
.turn-q::before { content: "From the floor"; display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); margin-bottom: 2px; }

.turn-a { max-width: 38em; margin: 0 0 30px; }
.turn-a p { margin: 0 0 10px; }
.say { font-size: 20px; line-height: 1.55; margin: 0 0 16px !important; }
.turn-a > .say:first-child::first-letter { font-size: 2.9em; float: left; line-height: .82; padding: 5px 8px 0 0; font-weight: 500; color: var(--oxblood); }
.src {
  display: block; margin: 20px 0 5px 20px !important; font-family: var(--type); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--oxblood);
}
.src em { font-style: normal; color: var(--ink-soft); letter-spacing: .04em; text-transform: none; }
.ink {
  position: relative; display: block; margin: 0 0 14px; padding: 2px 0 2px 18px; border-left: 2px solid var(--ink);
  font-size: 21px; line-height: 1.5; cursor: pointer; quotes: none; font-style: italic;
}
.ink:hover .ink-text, .ink.is-focus .ink-text { background-size: 100% 100%; }
.ink-text {
  background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 94%, transparent 94%) no-repeat 0 0 / 0% 100%;
  transition: background-size .5s ease; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.yr {
  font-style: normal; display: inline-block; margin-left: 8px; padding: 2px 7px 0; vertical-align: 2px;
  font-family: var(--type); font-size: 12px; letter-spacing: .06em; color: var(--oxblood); background: none;
  border: 1.5px solid var(--oxblood); border-radius: 2px; transform: rotate(-2deg); opacity: 0; transition: opacity .3s;
}
.yr.on { opacity: 1; }
.caret::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--ink-soft); font-size: .8em; }
@keyframes blink { 50% { opacity: 0; } }

/* the wait */
.loader { display: flex; align-items: center; gap: 16px; margin: 4px 0 26px; animation: arrive .4s ease both; }
.loader-can { flex: none; width: 40px; color: var(--ink); transform-origin: 50% 90%; animation: sip 4.8s ease-in-out infinite; }
.loader-can svg { display: block; width: 100%; overflow: visible; }
@keyframes sip { 0%, 55%, 100% { transform: rotate(0); } 68%, 82% { transform: rotate(-16deg) translateY(-3px); } }
.fizz { animation: fizz 1.6s ease-in infinite; opacity: 0; }
.fizz.f2 { animation-delay: .5s; } .fizz.f3 { animation-delay: 1s; }
@keyframes fizz { 0% { transform: translateY(4px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-14px); opacity: 0; } }
.loader-line { margin: 0; font-family: var(--type); font-size: 15px; color: var(--ink); }
.loader-line::after { content: ""; display: inline-block; width: 1.4em; text-align: left; animation: dots 1.2s steps(4) infinite; }
.loader-year { margin: 2px 0 0; font-family: var(--type); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
/* the folder tabs in the drawer get riffled while he looks */
.tabs.riffling a:not(.cited) { animation: riffle 1.9s ease-in-out infinite; }
.tabs.riffling a:nth-child(7n+1) { animation-delay: 0s; } .tabs.riffling a:nth-child(7n+2) { animation-delay: .12s; }
.tabs.riffling a:nth-child(7n+3) { animation-delay: .24s; } .tabs.riffling a:nth-child(7n+4) { animation-delay: .36s; }
.tabs.riffling a:nth-child(7n+5) { animation-delay: .48s; } .tabs.riffling a:nth-child(7n+6) { animation-delay: .6s; }
.tabs.riffling a:nth-child(7n) { animation-delay: .72s; }
@keyframes riffle { 0%, 60%, 100% { transform: none; opacity: .5; } 25% { transform: translateY(-5px); opacity: 1; } }

.note { font-family: var(--type); font-size: 12.5px; color: var(--ink-soft); border-top: 1px dashed var(--ink-soft); padding-top: 8px; max-width: 38em; }
.followups { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.followups button, .cards button {
  font-family: var(--type); font-size: 13.5px; line-height: 1.35; text-align: left; padding: 9px 12px 6px;
  background: #fbf7ea; border: 1px solid #cdbf9d; box-shadow: 1px 2px 0 rgba(34, 29, 23, .12); transition: transform .15s, box-shadow .15s;
}
.followups button:hover, .cards button:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: 2px 5px 0 rgba(34, 29, 23, .14); }

.starters { flex: 1; min-height: 0; overflow-y: auto; padding: 22px clamp(18px, 5vw, 64px); }
.floor.talking .starters { display: none; }
.starters-label { font-family: var(--type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cards button { font-size: 15px; padding: 14px 14px 10px; min-height: 76px; }
.cards button:nth-child(odd) { transform: rotate(-.5deg); }
.cards button:nth-child(3n) { transform: rotate(.7deg); }

.mic {
  flex: none; display: flex; align-items: flex-end; gap: 12px; margin: 0 clamp(18px, 5vw, 64px) 18px; padding: 10px 10px 10px 16px;
  background: var(--paper-light); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 rgba(34, 29, 23, .18);
}
.mic-no { display: block; font-family: var(--type); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); padding-bottom: 9px; white-space: nowrap; }
.mic textarea { flex: 1; resize: none; border: 0; background: none; font-family: var(--type); font-size: 17px; line-height: 1.4; color: var(--ink); padding: 6px 0 4px; max-height: 140px; outline: none; }
.mic textarea::placeholder { color: #a39a88; }
.mic button { font-family: var(--type); font-size: 15px; letter-spacing: .06em; padding: 9px 18px 6px; background: var(--ink); color: var(--paper-light); border: 0; border-radius: 2px; }
.mic button:disabled { opacity: .45; cursor: default; }

/* ---------- the archive ---------- */
.archive {
  display: flex; flex-direction: column; min-height: 0; color: var(--paper-light);
  background: var(--grain), radial-gradient(ellipse at 40% 20%, #2f463b, var(--baize) 50%, var(--baize-dark));
  border-left: 1px solid var(--ink); box-shadow: inset 8px 0 18px -8px rgba(0, 0, 0, .55);
}
.archive-head { flex: none; padding: 12px 24px 10px; display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid rgba(247, 241, 225, .18); }
.archive-head h2 { margin: 0; font-family: var(--type); font-weight: 400; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.archive-head p { margin: 0; font-style: italic; font-size: 15px; opacity: .7; }
.archive-close { display: none; margin-left: auto; color: var(--paper-light); }

.desk { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 26px 40px; scroll-behavior: smooth; }
.desk-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; }
.desk-empty p { max-width: 21em; margin: 0; font-style: italic; opacity: .75; }
.folder {
  position: relative; width: 230px; height: 150px; display: grid; place-items: center; transform: rotate(-3deg);
  background: var(--manila); color: #4a3a1c; font-family: var(--type); font-size: 14px; line-height: 1.5; border-radius: 2px 6px 4px 4px;
  box-shadow: 6px 10px 24px rgba(0, 0, 0, .45), inset 0 0 40px rgba(120, 90, 30, .25);
}
.folder::before { content: ""; position: absolute; left: 14px; top: -16px; width: 86px; height: 18px; background: var(--manila); border-radius: 5px 8px 0 0; }
.folder::after { content: ""; position: absolute; inset: 8px 5px -5px -5px; z-index: -1; background: var(--paper-light); transform: rotate(2.5deg); box-shadow: 2px 3px 8px rgba(0,0,0,.3); }
.folder span { border: 1px solid #8f7a48; padding: 8px 14px 5px; background: #f3e7c4; }

.sheet {
  position: relative; margin: 0 auto 30px; max-width: 560px; padding: 30px 34px 22px 46px;
  color: var(--ink); background: var(--grain), linear-gradient(#f9f3e3, #f3ead4);
  box-shadow: 0 1px 1px rgba(0,0,0,.2), 8px 14px 30px rgba(0, 0, 0, .5);
  animation: pull .7s cubic-bezier(.2, .9, .25, 1) both; transform: rotate(var(--tilt, 0deg));
}
.sheet::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; border-left: 1px solid rgba(125, 34, 25, .3); }
@keyframes pull { from { opacity: 0; transform: translateY(120px) rotate(4deg) scale(.96); } }
.sheet.is-focus { box-shadow: 0 0 0 2px var(--marker), 8px 14px 34px rgba(0, 0, 0, .6); }
.letterhead { text-align: center; font-size: 15px; letter-spacing: .2em; font-weight: 600; margin: 0 0 2px; }
.salute { font-size: 14px; font-style: italic; color: var(--ink-soft); margin: 0 0 14px; text-align: center; }
.stamp {
  position: absolute; right: 18px; top: 14px; padding: 5px 10px 2px; font-family: var(--type); font-size: 20px; letter-spacing: .08em;
  color: var(--oxblood); border: 2.5px solid var(--oxblood); border-radius: 4px; transform: rotate(7deg); opacity: .82;
  mix-blend-mode: multiply;
}
.stamp small { display: block; font-size: 8.5px; letter-spacing: .2em; margin-bottom: -3px; }
.sheet .section { font-family: var(--type); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.sheet p.body { margin: 0 0 12px; font-size: 16.5px; line-height: 1.55; text-indent: 1.6em; hyphens: auto; }
.sheet p.ctx { color: #91866f; -webkit-mask-image: linear-gradient(transparent, #000 85%); mask-image: linear-gradient(transparent, #000 85%); max-height: 5.2em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-indent: 0; }
.sheet p.ctx.after { -webkit-mask-image: linear-gradient(#000 15%, transparent); mask-image: linear-gradient(#000 15%, transparent); justify-content: flex-start; }
.sheet mark {
  color: inherit; cursor: pointer; padding: 1px 0;
  background: linear-gradient(100deg, transparent 0, var(--marker) 1.5%, #f9e27a 50%, var(--marker) 98%, transparent 100%) no-repeat 0 0 / 0% 100%;
  animation: swipe 1.1s .45s ease-out forwards; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@keyframes swipe { to { background-size: 100% 100%; } }
.sheet mark.pulse { animation: swipe 0s forwards, pulse .9s ease; }
@keyframes pulse { 30% { box-shadow: 0 0 0 5px rgba(246, 215, 90, .55); } }
.sheet footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 8px; border-top: 1px solid rgba(34, 29, 23, .2); font-family: var(--type); font-size: 11.5px; color: var(--ink-soft); }
.sheet footer a { color: var(--oxblood); }

/* a page of meeting transcript: typed, with the shareholder's question above his answer */
.sheet.meeting { background: var(--grain), linear-gradient(#f4f1e8, #ebe7da); padding-left: 34px; }
.sheet.meeting::before { display: none; }
.sheet.meeting .letterhead { font-family: var(--type); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-align: left; }
.sheet.meeting .salute { text-align: left; font-family: var(--type); font-style: normal; font-size: 12px; border-bottom: 1px solid rgba(34, 29, 23, .35); padding-bottom: 8px; }
.sheet.meeting .section { font-family: var(--serif); font-size: 19px; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 10px; }
.sheet.meeting p.body { font-family: var(--type); font-size: 14px; line-height: 1.6; text-indent: 0; hyphens: manual; }
.sheet.meeting p.question { color: var(--ink-soft); padding: 8px 10px 5px; background: rgba(34, 29, 23, .05); border-left: 2px solid var(--ink-soft); max-height: none; -webkit-mask-image: none; mask-image: none; display: block; }
.sheet .who { display: block; font-family: var(--type); font-size: 11px; letter-spacing: .14em; color: var(--oxblood); margin: 0 0 2px; text-indent: 0; }
.sheet.meeting .stamp { border-radius: 50%; padding: 12px 8px 8px; font-size: 17px; text-align: center; transform: rotate(-9deg); }

.drawer { flex: none; padding: 10px 18px 14px; background: linear-gradient(#17231d, #121c17); border-top: 1px solid #000; box-shadow: 0 -8px 16px rgba(0, 0, 0, .35); }
.drawer-label { margin: 0 0 7px 4px; font-family: var(--type); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
.tabs { display: grid; grid-template-columns: repeat(17, 1fr); gap: 3px 3px; }
.tabs a {
  position: relative; display: block; text-align: center; text-decoration: none; padding: 5px 0 2px;
  font-family: var(--type); font-size: 11px; color: #5a4a25; background: var(--manila); border-radius: 4px 4px 0 0;
  opacity: .5; transition: opacity .2s, transform .2s, background .3s;
}
.tabs a:hover { opacity: 1; transform: translateY(-3px); }
.tabs a.cited { opacity: 1; background: #f3e7c4; color: var(--oxblood); font-weight: 700; transform: translateY(-4px); box-shadow: 0 -2px 0 var(--oxblood) inset; }
.archive-fab { display: none; }

dialog { max-width: 600px; padding: 30px 34px; border: 1px solid var(--ink); background: var(--paper-light); color: var(--ink); box-shadow: 10px 12px 0 rgba(34, 29, 23, .25); }
dialog::backdrop { background: rgba(26, 41, 34, .7); }
dialog h2 { margin: 0 0 10px; font-weight: 500; font-size: 30px; }
dialog p { margin: 0 0 12px; font-size: 17px; }
dialog a { color: var(--oxblood); }

/* ---------- small screens: the archive becomes a pull-up drawer ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  main { grid-template-columns: 1fr; }
  .legend { display: none; }
  .masthead { justify-content: space-between; padding: 8px 16px 6px; }
  .archive { position: fixed; inset: 8vh 0 0 0; z-index: 5; transform: translateY(105%); transition: transform .45s cubic-bezier(.2, .9, .25, 1); border-left: 0; border-top: 1px solid var(--ink); box-shadow: 0 -12px 40px rgba(0, 0, 0, .5); }
  .archive.open { transform: none; }
  .archive-close { display: block; }
  .archive-head p { display: none; }
  .tabs { grid-template-columns: repeat(13, 1fr); }
  .archive-fab {
    display: block; position: fixed; right: 14px; bottom: 92px; z-index: 4; padding: 9px 14px 6px; font-family: var(--type); font-size: 13px;
    background: var(--baize); color: var(--paper-light); border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  }
  .archive-fab span { background: var(--marker); color: var(--ink); padding: 1px 6px 0; margin-left: 4px; }
  .sheet { padding: 26px 20px 18px 34px; }
  .sheet::before { left: 20px; }
  #intro { place-items: end center; }
  .intro-copy { padding: 20px 20px 18px; margin: 0 14px 44px; max-width: none; max-height: 78vh; overflow-y: auto; }
  .memorial { font-size: 16px; }
  .intro-copy h1 { font-size: 40px; margin-bottom: 10px; }
  .ink { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
