@font-face {
  font-family: "Zeyada";
  src: url("fonts/Zeyada-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "ABeeZee";
  src: url("fonts/ABeeZee-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "ABeeZee";
  src: url("fonts/ABeeZee-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ==========================================================================
   Rory Grey — The Private Desktop
   Editorial desktop environment. Brand: cream paper, ink, oxblood accent,
   Arial Narrow uppercase display. Adapted desktop metaphor — not a Mac parody.
   ========================================================================== */

:root {
  --paper:   #f3f1eb;
  --paper-2: #ece9e1;
  --paper-3: #e4e0d6;
  --ink:     #0b0b0a;
  --muted:   #b7b4ac;
  --grey:    #d8d6cf;
  --accent:  #5b0c18;
  --accent-2:#7a1522;
  --line:    #161615;
  --hair:    rgba(11,11,10,.18);
  --up:      #2f5d3a;

  --disp: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, sans-serif;
  --text: Arial, Helvetica, "Helvetica Neue", sans-serif;

  --menubar-h: 30px;
  --dock-h: 78px;

  /* desktop file-icon colours (overridden by the pink win98 theme) */
  --doc-paper: #f7f5f0;
  --doc-line:  #0b0b0a;
  --doc-line2: #b7b4ac;
  --doc-accent:#5b0c18;
  --doc-fold:  #d7d3c8;
  --doc-tint:  #e9e6dd;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;               /* the desktop owns the viewport */
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.micro {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.disp { font-family: var(--disp); text-transform: uppercase; letter-spacing: -.03em; line-height: .9; font-weight: 500; }

/* ============================ MENU BAR ==================================== */
.menubar {
  position: fixed; inset: 0 0 auto 0; height: var(--menubar-h); z-index: 4000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: rgba(243,241,235,.82);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  user-select: none;
}
.menubar-left { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 9px; height: 9px; background: var(--accent); display: inline-block; }
.brand-word { font-weight: 700; letter-spacing: .22em; }
.brand-sub { color: rgba(11,11,10,.5); letter-spacing: .18em; }
.menubar-right { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mb-sep { color: rgba(11,11,10,.4); }
.mb-clock { font-variant-numeric: tabular-nums; min-width: 74px; text-align: right; }
@media (max-width: 620px){ .brand-sub, .mb-loc, .mb-sep { display:none; } }

/* ============================ DESKTOP ==================================== */
.desktop {
  position: fixed; inset: var(--menubar-h) 0 0 0; overflow: hidden;
  background:
    radial-gradient(150% 105% at 50% -28%, #fdfbf6 0%, rgba(253,251,246,0) 46%),
    radial-gradient(135% 100% at 90% 120%, rgba(91,12,24,.22), transparent 56%),
    radial-gradient(85% 80% at 8% 4%, rgba(255,255,255,.5), transparent 55%),
    linear-gradient(162deg, #ece8df 0%, #f3f1ea 40%, #e4dfd4 100%);
}
/* soft vignette for depth (reads like a real wallpaper, not a design grid) */
.desktop::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(125% 125% at 50% 36%, transparent 52%, rgba(11,11,10,.13) 100%);
}
/* fine film grain */
.desktop::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.05; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Big editorial wallpaper mark, lower-center-right */
.wallmark {
  position: absolute; right: 4.5vw; bottom: calc(var(--dock-h) + 3vh);
  text-align: right; pointer-events: none; user-select: none;
  color: rgba(11,11,10,.055);
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.wallmark-title { font-family: var(--disp); font-weight: 500; text-transform: uppercase;
  font-size: clamp(90px, 20vw, 320px); line-height: .8; letter-spacing: -.05em; }
.wallmark-issue, .wallmark-foot { font-size: clamp(10px,1.1vw,13px); letter-spacing: .3em;
  font-weight: 700; color: rgba(11,11,10,.10); }
@media (max-width: 760px){ .wallmark{ opacity:.7; } }

.icon-layer { position: absolute; inset: 0; }
.window-layer { position: absolute; inset: 0; pointer-events: none; }
.window-layer .window { pointer-events: auto; }

/* ============================ DESKTOP ICONS ============================== */
.icon {
  position: absolute; width: 96px; padding: 7px 6px 6px; border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: grab; user-select: none; border-radius: 2px; touch-action: none;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.icon:hover { background: rgba(11,11,10,.035); }
.icon.hidden .glyph { opacity: .38; }
.icon.hidden .label { opacity: .5; font-style: italic; }
.icon.hidden:hover .glyph { opacity: .8; }
.icon.hidden:hover .label { opacity: .8; }
.icon.dragging { cursor: grabbing; background: rgba(91,12,24,.08); border-color: rgba(91,12,24,.3);
  box-shadow: 0 16px 30px -14px rgba(11,11,10,.4); opacity: .96; }
.icon.dragging .glyph { filter: drop-shadow(0 14px 18px rgba(11,11,10,.28)); }
.icon.selected { background: rgba(91,12,24,.10); border-color: rgba(91,12,24,.35); }
.icon .glyph { width: 57px; height: 70px; filter: drop-shadow(0 8px 12px rgba(11,11,10,.14)); }
.icon .label {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase; text-align: center;
  line-height: 1.15; font-weight: 600; color: var(--ink);
  padding: 2px 5px; border-radius: 4px; max-width: 100%;
  text-shadow: 0 1px 2px rgba(255,255,255,.65);
  overflow-wrap: anywhere; word-break: break-word;
}
.icon.selected .label { background: var(--accent); color: var(--paper); }
.icon .sub { display:block; font-size: 9px; letter-spacing:.12em; font-weight:700; color: rgba(11,11,10,.42); margin-top:2px; }

/* ============================ DOCK ====================================== */
.dock {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3800;
  display: flex; align-items: flex-end; gap: 14px; padding: 11px 16px;
  border-radius: 22px; border: 1px solid rgba(11,11,10,.13);
  background: rgba(248,246,241,.5);
  backdrop-filter: saturate(1.7) blur(28px); -webkit-backdrop-filter: saturate(1.7) blur(28px);
  box-shadow: 0 24px 54px -16px rgba(11,11,10,.5), inset 0 1px 0 rgba(255,255,255,.75), inset 0 0 0 .5px rgba(255,255,255,.3);
  max-width: calc(100vw - 20px);
}
.dock-item { position: relative; display: flex; flex-direction: column; align-items: center; }
.dock-btn {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  transition: transform .16s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 4px 10px rgba(11,11,10,.22); overflow: hidden;
}
.dock-btn svg { width: 100%; height: 100%; display: block; }
.dock-item:hover .dock-btn { transform: translateY(-10px) scale(1.08); }
.dock-item:active .dock-btn { transform: translateY(-4px) scale(1.02); }
.dock-tip {
  position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700; padding: 5px 9px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease; border-radius: 3px;
}
.dock-tip::after{ content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:5px solid transparent; border-top-color: var(--ink); }
.dock-item:hover .dock-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.dock-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-top: 5px; opacity: 0; }
.dock-item.running .dock-dot { opacity: 1; }
@media (max-width: 620px){
  .dock { gap: 8px; padding: 8px 10px; }
  .dock-btn { width: 46px; height: 46px; border-radius: 11px; }
}

/* ============================ WINDOWS =================================== */
.window {
  position: absolute; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid rgba(11,11,10,.5); border-radius: 12px;
  box-shadow: 0 32px 70px -14px rgba(11,11,10,.5), 0 12px 26px -12px rgba(11,11,10,.34), inset 0 0 0 .5px rgba(255,255,255,.28);
  min-width: 260px; min-height: 120px; overflow: hidden;
  opacity: 0; transform: scale(.96) translateY(8px); transform-origin: center;
  transition: opacity .18s ease, transform .2s cubic-bezier(.2,.9,.3,1);
}
.window.open { opacity: 1; transform: none; }
.window.closing { opacity: 0; transform: scale(.97) translateY(6px); }
.window.inactive { box-shadow: 0 24px 50px -26px rgba(11,11,10,.42); }
.window.inactive .titlebar { background: var(--paper); }
.window.inactive .win-title, .window.inactive .win-tag { color: rgba(11,11,10,.5); }

.titlebar {
  height: 42px; flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 0 13px; border-bottom: 1px solid rgba(11,11,10,.14);
  background: rgba(246,244,238,.86);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  cursor: grab; user-select: none; touch-action: none;
}
.titlebar.grabbing { cursor: grabbing; }
.win-controls { display: flex; align-items: center; gap: 8px; }
.win-dot {
  width: 12px; height: 12px; border-radius: 50%; border: .5px solid rgba(0,0,0,.16);
  display: grid; place-items: center; font-size: 8px; line-height: 1; font-weight: 700;
  color: transparent; transition: filter .12s, color .12s;
}
.win-dot.close { background: #ff5f57; }
.win-dot.min  { background: #febc2e; }
.win-dot.zoom { background: #28c840; }
.win-controls:hover .win-dot { color: rgba(0,0,0,.5); }
.win-dot:hover { filter: brightness(.92); }
.window.inactive .win-dot { background: #d6d2c8; border-color: rgba(0,0,0,.1); }
.window.inactive .win-controls:hover .win-dot { color: transparent; }

.win-heading { display: flex; flex-direction: column; justify-content: center; line-height: 1; min-width:0; }
.win-tag { font-size: 9px; letter-spacing: .22em; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.win-title { font-size: 12.5px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .spacer { flex: 1; }
.titlebar .win-num { font-family: var(--disp); font-size: 22px; color: rgba(11,11,10,.18); letter-spacing: -.04em; }

.win-body { flex: 1 1 auto; overflow: auto; overflow-x: hidden; background: var(--paper);
  scrollbar-width: thin; scrollbar-color: rgba(11,11,10,.3) transparent; }
.win-body::-webkit-scrollbar { width: 10px; }
.win-body::-webkit-scrollbar-thumb { background: rgba(11,11,10,.24); border: 3px solid var(--paper); border-radius: 20px; }

.window.maximized { border-radius: 0; }

/* ============================ CONTENT: shared editorial =================== */
.doc { padding: 34px 40px 46px; max-width: 760px; }
.doc-wide { max-width: none; }
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 26px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.doc-head .kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.doc-head h1 { font-family: var(--disp); font-size: clamp(38px, 6vw, 70px); text-transform: uppercase; letter-spacing: -.04em; line-height: .86; margin-top: 10px; }
.doc-head .head-num { font-family: var(--disp); font-size: clamp(46px,9vw,110px); color: var(--paper-3); line-height: .7; letter-spacing: -.06em; }
.lede { font-size: 18px; line-height: 1.45; margin-bottom: 22px; max-width: 56ch; }
.doc p + p { margin-top: 15px; }
.doc p { max-width: 62ch; }
.rule { height: 1px; background: var(--line); margin: 28px 0; }
.section-label { display:flex; align-items:baseline; gap:12px; margin: 30px 0 12px; }
.section-label .n { font-family: var(--disp); font-size: 30px; color: var(--accent); letter-spacing: -.04em; }
.section-label .t { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

.editorial-cta {
  display: inline-flex; align-items: center; gap: 26px; justify-content: space-between;
  border: 1px solid var(--line); padding: 15px 20px; margin-top: 30px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
.editorial-cta:hover { background: var(--ink); color: var(--paper); }
.editorial-cta .ar { font-size: 16px; transition: transform .18s; }
.editorial-cta:hover .ar { transform: translateX(5px); }

/* ---- About / Notes ---- */
.note-meta { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 26px;
  border: 1px solid var(--line); margin: 24px 0; }
.note-meta div { padding: 14px 16px; border-right: 1px solid var(--line); }
.note-meta div:nth-child(2n){ border-right: 0; }
.note-meta .k { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(11,11,10,.5); }
.note-meta .v { font-family: var(--disp); font-size: 22px; text-transform: uppercase; margin-top: 4px; }
.pull { font-family: var(--disp); text-transform: uppercase; font-size: clamp(26px,4vw,44px);
  line-height: .95; letter-spacing: -.03em; color: var(--ink); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 22px 0; margin: 30px 0; }
.pull span { color: var(--accent); }
.particulars { display: grid; gap: 0; border: 1px solid var(--line); margin-top: 6px; }
.particulars .row { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.particulars .row:last-child { border-bottom: 0; }
.particulars .k { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ---- Etiquette / FAQ accordions ---- */
.rules { border-top: 1px solid var(--line); margin-top: 20px; }
.rules details { border-bottom: 1px solid var(--line); }
.rules summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 38px 1fr 24px;
  align-items: center; gap: 14px; padding: 16px 4px; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary .num { font-family: var(--disp); font-size: 20px; color: var(--accent); }
.rules summary .ttl { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rules summary .pm { font-family: var(--disp); font-size: 22px; text-align: center; color: rgba(11,11,10,.5); }
.rules details[open] summary .pm { color: var(--accent); }
.rules details[open] summary .pm::after { content: "–"; }
.rules summary .pm::after { content: "+"; }
.rules .body { padding: 2px 4px 22px 52px; }
.rules .body p { max-width: 58ch; }
.rules .body p + p { margin-top: 12px; }

/* ---- Rates / Stocks ---- */
.rates { padding: 30px 40px 44px; max-width: 720px; }
.ticker { display:flex; align-items:center; justify-content:space-between; border:1px solid var(--line);
  background: var(--ink); color: var(--paper); padding: 12px 16px; margin-bottom: 26px; }
.ticker .sym { font-weight: 700; letter-spacing: .18em; font-size: 12px; }
.ticker .sym b { color: var(--paper); }
.ticker .arrow { color: #77c98a; font-size: 12px; letter-spacing:.1em; font-weight:700; }
.ticker .arrow::before { content: "▲ "; }
.rate-group { margin-bottom: 30px; }
.rate-group h3 { display:flex; align-items:baseline; gap:12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.rate-group h3 .n { font-family: var(--disp); font-size: 26px; color: var(--accent); }
.rate-group h3 .t { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.rate-line { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px;
  padding: 12px 2px; border-bottom: 1px solid var(--hair); }
.rate-line .lab { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.rate-line .price { font-family: var(--disp); font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rate-line .price .up { color: var(--up); font-size: 12px; margin-right: 6px; vertical-align: 3px; }
.rate-note { grid-column: 1 / -1; font-size: 12px; color: rgba(11,11,10,.6); padding-top: 6px; letter-spacing: .02em; }
.rate-foot { font-size: 12px; color: rgba(11,11,10,.7); margin-top: 14px; line-height: 1.6; }

/* ---- Gallery / Photos ---- */
.gallery { padding: 22px; }
.gallery-head { display:flex; align-items:baseline; justify-content:space-between; padding: 4px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.gallery-head .kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.gallery-head h1 { font-family: var(--disp); font-size: clamp(30px,4.4vw,52px); text-transform: uppercase; letter-spacing: -.03em; }
.gallery-head .count { font-size: 11px; letter-spacing: .14em; font-weight: 700; color: rgba(11,11,10,.5); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-3); cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s; filter: grayscale(.12) contrast(1.02); }
.tile:hover img { transform: scale(1.05); filter: none; }
.tile .cap { position: absolute; left: 8px; bottom: 8px; background: var(--paper); border: 1px solid var(--line);
  font-size: 9px; font-weight: 700; letter-spacing: .12em; padding: 3px 6px; opacity: 0; transition: opacity .2s; }
.tile:hover .cap { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 6000; background: rgba(11,11,10,.86);
  display: none; align-items: center; justify-content: center; padding: 48px; opacity: 0; transition: opacity .2s; }
.lightbox.show { display: flex; opacity: 1; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); color: var(--paper);
  font-family: var(--disp); font-size: 42px; width: 60px; height: 60px; display: grid; place-items: center;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.2); }
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-close { position: absolute; top: 22px; right: 26px; color: var(--paper); font-size: 22px; letter-spacing: .1em;
  border: 1px solid rgba(255,255,255,.3); padding: 6px 12px; font-weight: 700; }
.lb-close:hover { background: rgba(255,255,255,.14); }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7);
  font-size: 11px; letter-spacing: .2em; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- Image protection + single-photo viewer + gag windows ---- */
.tile img, .lightbox img, .photo-view img, .mail-avatar img {
  -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; user-drag: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none;
}
.photo-view { padding: 14px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.photo-view .frame { flex: 1; border: 1px solid var(--line); background: var(--paper-3); display: grid; place-items: center; overflow: hidden; min-height: 0; }
.photo-view img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.photo-view .cap { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(11,11,10,.6); }
.photo-view .missing { padding: 34px 26px; text-align: center; color: rgba(11,11,10,.6); font-size: 13px; line-height: 1.6; }
.photo-view .missing code { background: var(--paper-2); border: 1px solid var(--line); padding: 2px 6px; font-size: 12px; }
.nicetry { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px; }
.nicetry .big { font-family: var(--disp); text-transform: uppercase; font-size: clamp(44px,9vw,80px); letter-spacing: -.03em; line-height: .9; }
.nicetry .big .em { color: var(--accent); }
.nicetry .sub { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(11,11,10,.55); font-weight: 700; max-width: 40ch; line-height: 1.7; }

/* ---- Contact / Mail ---- */
.mail-head { display:flex; align-items:center; gap: 14px; border-bottom: 1px solid var(--line); padding: 0 0 16px; margin-bottom: 22px; }
.mail-avatar { width: 44px; height: 44px; border-radius: 50%; overflow:hidden; border: 1px solid var(--line); flex:0 0 auto; }
.mail-avatar img { width:100%; height:100%; object-fit: cover; }
.mail-from .n { font-weight: 700; letter-spacing: .06em; }
.mail-from .e { font-size: 12px; color: rgba(11,11,10,.55); }
.methods { display: grid; gap: 0; border: 1px solid var(--line); margin: 8px 0 24px; }
.methods .m { padding: 15px 18px; border-bottom: 1px solid var(--line); display:flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.methods .m:last-child { border-bottom: 0; }
.methods .k { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.methods .v { font-family: var(--disp); font-size: 20px; text-transform: uppercase; text-align: right; }
.methods .v.small { font-family: var(--text); font-size: 13px; text-transform: none; color: rgba(11,11,10,.75); }

/* ---- Forms (Screening / inquiry) ---- */
.form { padding: 30px 40px 46px; max-width: 720px; }
.form fieldset { border: 1px solid var(--line); padding: 0 20px 22px; margin: 0 0 22px; }
.form legend { display:flex; align-items:center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; padding: 0 8px; margin-left: -4px; }
.form legend span { font-family: var(--disp); font-size: 20px; color: var(--accent); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(11,11,10,.65); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  border: 1px solid var(--line); background: #fbfaf6; padding: 10px 12px; font-size: 14px; width: 100%;
  border-radius: 0; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form textarea { resize: vertical; }
.form .submit {
  display: inline-flex; align-items: center; gap: 22px; justify-content: space-between; width: 100%;
  border: 1px solid var(--line); background: var(--ink); color: var(--paper);
  padding: 16px 20px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
.form .submit:hover { background: var(--accent); }
.form-notice { border: 1px solid var(--accent); color: var(--accent); padding: 14px 16px; margin-top: 18px;
  font-size: 13px; letter-spacing: .02em; background: rgba(91,12,24,.05); }
.form .intro { font-size: 13px; color: rgba(11,11,10,.7); margin-bottom: 20px; max-width: 60ch; }

/* ---- Blog / Journal ---- */
.article { padding: 34px 44px 52px; max-width: 680px; }
.article .back { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.article .dispatch { font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(11,11,10,.45); margin-top: 22px; }
.article h1 { font-family: var(--disp); font-size: clamp(34px,5.2vw,58px); text-transform: uppercase; letter-spacing: -.035em; line-height: .9; margin: 10px 0 12px; }
.article .date { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(11,11,10,.5);
  border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.article .body p { font-size: 16px; line-height: 1.62; max-width: 60ch; }
.article .body p + p { margin-top: 16px; }
.article .body h2 { font-family: var(--disp); font-size: 24px; text-transform: uppercase; letter-spacing: -.02em; margin: 26px 0 8px; color: var(--accent); }
.article .drop::first-letter { font-family: var(--disp); font-size: 3.4em; line-height: .8; float: left; padding: 6px 10px 0 0; color: var(--accent); }
.article .end { text-align:center; letter-spacing:.4em; color: var(--accent); margin-top: 30px; font-size: 12px; }

/* ============================ RESPONSIVE / MOBILE ======================== */
@media (max-width: 760px){
  .field-grid { grid-template-columns: 1fr; }
  .note-meta { grid-template-columns: 1fr; }
  .note-meta div { border-right: 0; border-bottom: 1px solid var(--line); }
  .note-meta div:last-child { border-bottom: 0; }
  .doc, .form, .rates, .article { padding-left: 22px; padding-right: 22px; }
}
/* On small screens, lay icons out in a flowing grid instead of scattered abs positions */
body.compact .icon-layer { position: absolute; inset: 10px 6px auto 6px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; align-content: start; }
body.compact .icon { position: static !important; width: auto; }
body.compact .wallmark { bottom: auto; top: 40%; }

/* ---- pixel icons, folders, and games (shared) ---- */
.icon img.glyph { width: 54px; height: 54px; object-fit: contain; image-rendering: pixelated; filter: none; }
.win-ico { display: none; }

.folder-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 14px; background: #fff; align-content: start; }
.folder-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 9px 4px; text-align: center; border: 1px solid transparent; cursor: pointer; color: inherit; }
.folder-item .fic { width: 34px; height: 34px; display: grid; place-items: center; }
.folder-item .fic img, .folder-item .fic svg { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.folder-item span:last-child { font-size: 11px; line-height: 1.25; }
.folder-status { display: flex; justify-content: space-between; font-size: 11px; padding: 5px 10px; color: #7a3b63; }

/* Minesweeper */
.mine { padding: 8px; display: inline-block; }
.mine-head { display: flex; justify-content: space-between; align-items: center; padding: 6px; margin-bottom: 8px; }
.mine-lcd { background: #2a0d1c; color: #ff5f8f; font-family: "Courier New", monospace; font-weight: 700; font-size: 20px; padding: 2px 6px; letter-spacing: 2px; min-width: 46px; text-align: center; }
.mine-face { width: 30px; height: 30px; font-size: 15px; }
.mine-grid { display: grid; width: max-content; }
.mcell { width: 22px; height: 22px; font-size: 13px; font-weight: 700; line-height: 1; padding: 0; display: grid; place-items: center; }
.mcell.open { background: #ffe9f4; }
.mcell.boom { background: #ff5f8f; }
.mcell.n1 { color: #1616c0; } .mcell.n2 { color: #2f7d32; } .mcell.n3 { color: #c01640; } .mcell.n4 { color: #000080; }
.mcell.n5 { color: #7a0d1c; } .mcell.n6 { color: #0d8a8a; } .mcell.n7 { color: #3d2233; } .mcell.n8 { color: #808080; }

/* Solitaire */
.sol { padding: 8px; height: 100%; display: flex; flex-direction: column; }
.sol-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.sol-btn { padding: 3px 14px; font-size: 12px; }
.sol-status { font-size: 12px; font-weight: 700; color: #7a3b63; }
.sol-felt { flex: 1; background: #cf6ba6; padding: 12px; overflow: auto; }
.sol-top { display: flex; gap: 8px; margin-bottom: 12px; }
.sol-slot { width: 52px; height: 74px; position: relative; flex: 0 0 auto; }
.sol-spacer { flex: 1 1 auto; }
.sol-cols { display: flex; gap: 8px; align-items: flex-start; }
.sol-col { width: 52px; position: relative; min-height: 74px; flex: 0 0 auto; }
.card { width: 52px; height: 74px; border-radius: 5px; position: absolute; left: 0; top: 0; box-sizing: border-box; user-select: none; }
.card.up { background: #fff; border: 1px solid #7a3b63; display: flex; flex-direction: column; align-items: flex-start; padding: 3px 5px; font-family: Georgia, "Times New Roman", serif; font-weight: 700; cursor: pointer; }
.card.down { background: #f4a6d0; border: 1px solid #7a3b63; background-image: repeating-linear-gradient(45deg, #e58cbf 0 4px, #f4a6d0 4px 8px); cursor: pointer; }
.card.red { color: #c01640; } .card.blk { color: #2a1420; }
.card .cr { font-size: 15px; line-height: 1; } .card .cs { font-size: 14px; line-height: 1; }
.card { touch-action: none; }
.card.sel { box-shadow: 0 0 0 2px #ffe14d; }
.card.ghosting { opacity: .3; }
.drag-ghost { position: fixed; z-index: 8000; width: 52px; pointer-events: none; }
.drag-ghost .card { position: absolute; left: 0; box-shadow: 2px 3px 6px rgba(0,0,0,.35); }
.slot-empty { width: 52px; height: 74px; border: 1px dashed rgba(255,255,255,.65); border-radius: 5px; display: grid; place-items: center; color: rgba(255,255,255,.75); font-size: 22px; }
.slot-empty.red { color: rgba(255,214,228,.85); }

/* ---- Rory's content typography: IM Fell (headlines + body), Heavenfield (quotes).
   Scoped to the editorial content only — chrome/nav/folders keep the system font. ---- */
.doc, .article, .rates, .gallery, .form {
  font-family: "ABeeZee", "Segoe UI", Helvetica, Arial, sans-serif;
  --disp: "ABeeZee", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px; font-weight: 400;
}
.doc h1, .doc-head h1, .article h1, .doc h2, .article .body h2,
.gallery-head h1, .form legend {
  letter-spacing: 0; line-height: 1.06; font-weight: 700;
}
/* Advent Pro runs small + light: give body copy more size and weight */
.doc p, .particulars p, .rules .body p, .methods .v.small { font-size: 16px; line-height: 1.6; letter-spacing: 0; }
.article .body p { font-size: 17px; line-height: 1.62; letter-spacing: 0; }
.lede { font-size: 20px; line-height: 1.5; letter-spacing: 0; font-weight: 500; }
/* the small caps labels need a bump too */
.doc .kicker, .doc-head .kicker, .article .dispatch, .article .date, .micro,
.section-label .t, .rate-group h3 .t, .note-meta .k, .particulars .k, .methods .k,
.rules summary .ttl, .gallery-head .kicker, .gallery-head .count, .form label span {
  font-size: 12px; font-weight: 700;
}
.rules summary .ttl { font-size: 14px; }
.rate-line .lab { font-size: 15px; font-weight: 500; }
.section-label .n, .rate-group h3 .n, .rules summary .num { font-weight: 700; }
.doc .pull, .article .pull, .doc blockquote, .article blockquote {
  font-family: "Zeyada", cursive;
  font-size: clamp(40px, 6.2vw, 64px);
  text-transform: none; letter-spacing: 0; line-height: 1.0; font-weight: 400;
}
.doc .pull span { font-size: inherit; color: var(--accent); }

/* drop the decorative section numbers from content */
.head-num, .giant-number, .section-label .n, .rate-group h3 .n, .rules summary .num { display: none; }
.rules summary { grid-template-columns: 1fr 24px; }
