/* =========================================================================
   yoursite — cybersigilism

   The whole design is: pure black, one hairline weight, one accent, and a lot
   of empty space. There are deliberately no panels, boxes, cards or borders
   around content — structure comes from typography and rules, not containers.
   If you add a box, you will break the look.

   Sections: fonts · tokens · base · decor · layout · nav · components ·
             updates · guestbook · footer · responsive
   ========================================================================= */

/* ---------- fonts ---------- */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-latin.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-italic.woff2') format('woff2');
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}

/* Subset to exactly the glyphs used by $SITE['vertical'] — 3.5 KB.
   Change that string and you must re-subset; see the README. */
@font-face {
  font-family: 'Noto Serif JP';
  src: url('../fonts/notoserifjp-subset.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3053, U+306E-306F, U+308C, U+591C, U+5BB6, U+5EAD, U+79C1;
}

/* ---------- tokens ---------- */

:root {
  --void:   #000000;
  --bone:   #e7e3ec;   /* body text */
  --ash:    #a49db0;   /* secondary text          — 6.4:1 on black */
  --dim:    #8b8499;   /* metadata, labels        — 4.8:1 on black */
  --faint:  #5d5766;   /* decoration only, never text */
  --lilac:  #c3a9d4;   /* the one accent          — 8.5:1 */
  --lilac-d:#a891ba;

  --line:      rgba(231, 227, 236, .18);
  --line-soft: rgba(231, 227, 236, .09);

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --jp:    'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  --measure: 40rem;    /* comfortable line length for the serif */
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--serif);
  font-size: calc(18px * var(--font-scale, 1));  /* Cormorant needs the size */
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--head-font, var(--serif));
  font-weight: 300;
  color: var(--bone);
  line-height: 1.15;
  margin: 0 0 .5em;
}

h2 {
  font-size: 2.1rem;
  text-transform: var(--head-case, lowercase);
  letter-spacing: var(--head-spacing, .04em);
  margin-bottom: .7rem;
}

h3 {
  font-size: 1.35rem;
  text-transform: var(--head-case, lowercase);
  letter-spacing: var(--head-spacing, .05em);
  color: var(--lilac);
  margin-top: 2rem;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }

a {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
a:visited { color: var(--ash); }
a:hover, a:focus {
  color: var(--lilac);
  border-bottom-color: var(--lilac);
}

:focus-visible { outline: 1px solid var(--lilac); outline-offset: 4px; }

img { max-width: 100%; height: auto; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3rem 0;
}

blockquote {
  margin: 1.4em 0;
  padding-left: 1.4em;
  border-left: 1px solid var(--line);
  color: var(--ash);
  font-style: italic;
}

code, pre {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: .72em;
  letter-spacing: 0;
}

pre {
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
  padding: .2em 0 .2em 1.2em;
  overflow-x: auto;
  color: var(--ash);
  max-width: var(--measure);
}

code { color: var(--lilac-d); }

em, i { color: var(--ash); }

.skip { position: absolute; left: -9999px; background: #000; padding: .5em 1em; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- decorative layers ---------- */
/* All fixed, all behind the content, none of it interactive. */

.bgimg, .veil, .thorn, .grain, .rail {
  position: fixed;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* the background image chosen in the admin */
.bgimg {
  inset: 0;
  background-image: var(--bg-image, none);
  background-size: var(--bg-size, cover);
  background-repeat: var(--bg-repeat, no-repeat);
  background-position: center;
  opacity: var(--bg-opacity, 1);
}

/* Faked handwriting. Masked into two soft patches — spread evenly across the
   whole viewport it stops reading as writing and starts reading as static. */
.veil {
  inset: 0;
  background: url('../images/script.svg') center / cover no-repeat;
  opacity: var(--veil-o, .085);
  -webkit-mask-image:
    radial-gradient(ellipse 46% 34% at 16% 26%, #000 10%, transparent 72%),
    radial-gradient(ellipse 40% 30% at 86% 74%, #000 10%, transparent 72%);
          mask-image:
    radial-gradient(ellipse 46% 34% at 16% 26%, #000 10%, transparent 72%),
    radial-gradient(ellipse 40% 30% at 86% 74%, #000 10%, transparent 72%);
}

.thorn { background-repeat: no-repeat; opacity: var(--thorn-o, .22); }

.thorn-l {
  left: -3vw;
  bottom: 0;
  width: var(--thorn-w, 26vw);
  height: 96vh;
  background-image: url('../images/thorn-left.svg');
  background-position: left bottom;
  background-size: contain;
}

.thorn-r {
  right: -2vw;
  bottom: -2vh;
  width: calc(var(--thorn-w, 26vw) * 1.3);
  height: 62vh;
  background-image: url('../images/thorn-right.svg');
  background-position: right bottom;
  background-size: contain;
}

/* film grain over everything */
.grain {
  inset: 0;
  background: url('../images/grain.svg');
  opacity: var(--grain-o, .045);
}

/* vertical text down the right edge */
.rail {
  top: 50%;
  right: 1.6rem;
  translate: 0 -50%;
  margin: 0;
  max-width: none;
  writing-mode: vertical-rl;
  font-family: var(--jp);
  font-size: 1rem;
  letter-spacing: .55em;
  color: var(--faint);
  opacity: .85;
}

/* ---------- layout ---------- */

.page {
  position: relative;
  z-index: 1;
  max-width: var(--page-w, 72rem);
  margin: 0 auto;
  padding: 2rem 1.4rem 3rem;
}

.masthead {
  position: relative;
  margin-bottom: calc(1rem * var(--space, 1));
  padding: var(--mast-pad, 2.6rem) 1.4rem calc(var(--mast-pad, 2.6rem) * .75);
  text-align: var(--mast-align, center);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius, 0);
  overflow: hidden;
}

/* the sigil, contained inside the banner instead of floating over the page */
.masthead-seal {
  position: absolute;
  inset: -60% 0 auto 0;
  height: 260%;
  background: url('../images/sigil.svg') center / contain no-repeat;
  opacity: var(--seal-o, .16);
  pointer-events: none;
}
.masthead > h1, .masthead > p { position: relative; }

.sitename {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 300;
  margin: 0;
  text-transform: lowercase;
  letter-spacing: .22em;
  text-indent: .22em;          /* re-centres against the trailing letter-space */
  color: var(--bone);
}
.sitename a { border: 0; color: inherit; }
.sitename a:hover { color: var(--lilac); }

.tagline {
  margin: 1.4rem auto 0;
  max-width: none;
  font-size: .72rem;
  font-style: italic;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--dim);
}

.layout {
  display: grid;
  grid-template-columns: var(--col-l, 12.5rem) minmax(0, 1fr) var(--col-r, 13rem);
  gap: var(--gutter, 1rem);
  align-items: start;
}

.col { min-width: 0; }

/* content blocks: spacing only, no container */
.block { margin: 0 0 4.5rem; }
.block:last-child { margin-bottom: 0; }

/* a nested passage, marked by a single rule rather than a box */
.inset {
  margin: 0 0 2.6rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-soft);
}
.inset > :last-child { margin-bottom: 0; }
.inset h3 { margin-top: 0; }


/* ---------- panels ---------- */
/* Every module on the page is one of these: a hairline box with a label bar.
   .block is the same thing, so page templates need no extra markup. */

.panel, .block {
  border: var(--panel-border, 1px solid) var(--line-soft);
  background: var(--panel-tint, rgba(255, 255, 255, .012));
  border-radius: var(--radius, 0);
  box-shadow: var(--shadow, none);
  margin: 0 0 calc(1rem * var(--space, 1));
  padding: 0 .95rem calc(.95rem * var(--space, 1));
}
.block:last-child, .panel:last-child { margin-bottom: 0; }

/* the label bar: an h2 sitting flush against the panel edges */
.panel-hd,
.block > h2:first-child {
  margin: 0 -.95rem calc(.9rem * var(--space, 1));
  border-radius: var(--radius, 0) var(--radius, 0) 0 0;
  padding: .5em .95rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel-tint, rgba(255, 255, 255, .035));
  font-size: .68rem;
  font-weight: 300;
  text-transform: var(--label-case, uppercase);
  letter-spacing: .24em;
  color: var(--ash);
}
.panel-hd::after, .block > h2:first-child::after { content: none; }

.panel-bd { padding-top: .1rem; }
.panel-tight { padding-bottom: .1rem; }
.panel-centre { text-align: center; }

.panel-bd > :last-child { margin-bottom: 0; }

/* a nested box, the way cherished-cat doubles its borders */
.panel-deep { border-style: double; border-width: 3px; }

/* ---------- nav ---------- */

.nav-list { list-style: none; margin: 0; padding: 0; }

.nav-list li { border-bottom: 1px solid var(--line-soft); }
.nav-list li:last-child { border-bottom: 0; }

.nav-sub { margin-top: .5rem; border-top: 1px solid var(--line-soft); padding-top: .3rem; }
.nav-sub .nav-link { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--dim); }

.nav-link {
  display: block;
  padding: .34rem .2rem;
  border: 0;
  font-size: 1.02rem;
  text-transform: lowercase;
  letter-spacing: .08em;
  color: var(--ash);
  transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
.nav-link:hover { background: rgba(255,255,255,.04); padding-left: .55rem; }
.nav-link:visited { color: var(--ash); }
.nav-link:focus-visible { color: var(--bone); }

.nav-link.is-current { color: var(--lilac); }
.nav-link.is-current {
  background: rgba(195, 169, 212, .09);
  padding-left: .55rem;
}
.nav-link.is-current::before {
  content: '';
  display: inline-block;
  width: .6rem;
  height: 1px;
  margin-right: .45rem;
  vertical-align: middle;
  background: var(--lilac);
}

/* ---------- components ---------- */

/* hover-to-expand passage */
.expand {
  max-width: var(--measure);
  max-height: 3.6em;
  overflow: hidden;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-soft);
  margin-bottom: 2.4rem;
  cursor: help;
  transition: max-height .8s ease, border-color .5s ease;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.expand:hover, .expand:focus-within {
  max-height: 60em;
  border-left-color: var(--lilac-d);
  -webkit-mask-image: none;
          mask-image: none;
}
.expand > :first-child { margin-top: 0; }

details.inset summary {
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--lilac);
  text-transform: lowercase;
  letter-spacing: .05em;
  margin-bottom: .6em;
}

.scrollbox { max-height: 30rem; overflow-y: auto; padding-right: 1.2rem; }

/* grids: images and text, still no boxes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 2.6rem 2rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.card p { font-size: .84rem; color: var(--ash); margin-bottom: .4em; max-width: none; }
.card h3 { margin: .7rem 0 .3rem; font-size: 1.1rem; }
.card .stat-list { margin-top: .5rem; }

.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  /* placeholder: the sigil, faint, on black */
  background: #000 url('../images/sigil.svg') center / 74% no-repeat;
  opacity: .8;
  transition: opacity .3s ease, border-color .3s ease;
}
.card:hover .card-img { opacity: 1; border-color: var(--line); }

.tag {
  display: inline-block;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--dim);
  margin-right: .8em;
}
.tag::before { content: '\2014\00a0'; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.stat-list { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.stat-list li {
  padding: .5em 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ash);
}
.stat-list li:last-child { border-bottom: 0; }
.stat-list b {
  font-weight: 300;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78em;
  margin-right: .5em;
}

.status {
  max-width: none;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--dim);
  padding-bottom: 2.4rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line-soft);
}
.status b { font-weight: 300; color: var(--lilac-d); }

/* ---------- updates ---------- */

.updates { list-style: none; margin: 0; padding: 0; }

.update {
  padding: .55em 0;
  border-bottom: 1px solid var(--line-soft);
}
.update:last-child { border-bottom: 0; }

.update-date {
  display: block;
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .1em;
}
.update-date b { font-weight: 300; }

.update-title { font-size: .9rem; line-height: 1.3; letter-spacing: .02em; }
.update-title a { border: 0; }
.update-title a:hover { color: var(--lilac); }

.update-body {
  display: block;
  margin-top: .15em;
  font-size: .72rem;
  line-height: 1.45;
  color: var(--ash);
}

/* ---------- guestbook ---------- */

.gb-entry {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.gb-meta {
  max-width: none;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--dim);
  margin-bottom: .7em;
}
.gb-meta b { font-weight: 300; color: var(--ash); }
.gb-meta a { border: 0; }

.gb-msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--bone); }

/* underline-only form fields */
.field { display: block; margin-bottom: 2.2rem; max-width: var(--measure); }
.field span {
  display: block;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--dim);
  margin-bottom: .5em;
}
.field b { color: var(--lilac-d); }
.field em { font-style: italic; letter-spacing: .1em; }

input[type=text], input[type=url], textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--bone);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: .35em 0;
  transition: border-color .25s ease;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--lilac); }
textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }

button, .btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: .7rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--bone);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: .5em 0;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, letter-spacing .3s ease;
}
button:hover, .btn:hover {
  color: var(--lilac);
  border-bottom-color: var(--lilac);
  letter-spacing: .38em;
}

.notice {
  max-width: var(--measure);
  padding-left: 1.4rem;
  border-left: 1px solid var(--lilac-d);
  color: var(--ash);
  margin-bottom: 2rem;
}
.notice.bad { border-left-color: #b5647f; color: #d8a0b1; }
.notice p { margin: .2em 0; }

.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */

.sitefooter {
  margin-top: 7rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
}

/* the dictionary-entry block */
.definition { margin-bottom: 3rem; max-width: 22rem; }
.definition h2 {
  font-size: 1.6rem;
  margin-bottom: .1rem;
  letter-spacing: .02em;
  text-transform: none;
}
.definition p {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--ash);
  margin: 0;
}
.definition i { color: var(--dim); margin-right: .3em; }

.buttons { margin: 0 0 1.6rem; max-width: none; }
.buttons img {
  image-rendering: pixelated;
  margin: 0 .5rem .5rem 0;
  opacity: .55;
  transition: opacity .25s ease;
}
.buttons img:hover { opacity: 1; }

.fineprint {
  max-width: none;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--dim);
  margin: .5em 0;
}
.fineprint a { color: var(--dim); border: 0; }
.fineprint a:hover { color: var(--lilac); }

/* ---------- scrollbars & selection ---------- */

* { scrollbar-width: thin; scrollbar-color: var(--dim) transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dim); }

::selection { background: var(--lilac); color: #000; }

/* ---------- responsive ---------- */

@media (max-width: 480px) {
  body { font-size: 17px; }
  .page { padding: 1rem .7rem 2rem; }
  .masthead { padding: 1.6rem .6rem 1.2rem; }
  .sitename { letter-spacing: .1em; text-indent: .1em; }
  .tagline { letter-spacing: .22em; text-indent: .22em; font-size: .64rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1.4rem 1rem; }
  .nav-list { columns: 1; }
}

/* ---------- motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .bgimg, .veil, .thorn, .grain, .rail, .col-l, .col-r, .skip { display: none; }
  .page { max-width: none; padding: 0; }
  .expand { max-height: none; mask-image: none; -webkit-mask-image: none; }
  a { color: #000; border: 0; }
  h3, .tag, .definition i { color: #444; }
  .stat-list li, .update, .gb-entry { border-color: #ccc; }
}

/* =========================================================================
   Sidebar widgets — the parts that make it feel like a lived-in home page
   rather than a document: status, mood, buttons, webrings, counter.
   ========================================================================= */

.micro-list { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.micro-list li {
  padding: .35em 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ash);
  max-width: none;
}
.micro-list li:last-child { border-bottom: 0; }
.micro-list b {
  display: block;
  font-weight: 300;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--dim);
}

.micro { font-size: .68rem; color: var(--dim); margin: .5em 0 0; max-width: none; }

.mood { margin: 0; font-size: .92rem; color: var(--bone); max-width: none; }
.mood-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: .5em;
  background: var(--lilac);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

/* 88x31 buttons */
.btn88 {
  display: inline-block;
  width: 88px; height: 31px;
  image-rendering: pixelated;
  margin: 3px 2px;
  border: 1px solid var(--line-soft);
  vertical-align: middle;
  opacity: .78;
  transition: opacity .2s ease, border-color .2s ease;
}
.btn88-link { border: 0; }
.btn88-link:hover .btn88, .btn88:hover { opacity: 1; border-color: var(--lilac); }

/* placeholder for an affiliate with no button image yet */
.btn88-blank {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dim);
  line-height: 29px;
  overflow: hidden;
  text-align: center;
  background: rgba(255,255,255,.03);
}

.webrings { font-size: .74rem; color: var(--ash); }
.webrings img { max-width: 100%; }

/* odometer-style hit counter */
.counter {
  margin: 0;
  max-width: none;
  display: flex;
  justify-content: center;
  gap: 2px;
}
.counter span {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: .82rem;
  color: var(--lilac);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-soft);
  padding: .15em .32em;
}

/* ---------- responsive: fold the three columns down ---------- */

@media (max-width: 1080px) {
  /* nav and widgets share one row above the content */
  .layout { grid-template-columns: var(--col-l, 12.5rem) minmax(0, 1fr); }
  .col-r {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
    align-items: start;
  }
  .col-r .panel { margin-bottom: 0; }
}

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .col-l {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    align-items: start;
  }
  .col-l .panel { margin-bottom: 0; }
  .nav-list { columns: 2; }
  .nav-sub { columns: 1; }
}

/* ---------- availability badge ---------- */
/* Driven by includes/config.php → availability(); the words and hours are
   editable under Settings. */

.avail {
  display: flex;
  align-items: center;
  gap: .5em;
  margin: 0 0 .7em;
  padding-bottom: .6em;
  border-bottom: 1px solid var(--line-soft);
  max-width: none;
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-transform: lowercase;
}
.avail.is-on  { color: var(--lilac); }
.avail.is-off { color: var(--ash); }

.avail-dot {
  width: 8px; height: 8px;
  flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.avail.is-on .avail-dot { animation: pulse 2.2s ease-in-out infinite; }

/* ---------- widgets added by the layout editor ---------- */

.wsearch { display: flex; gap: .4rem; }
.wsearch input[type=search] {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--bone);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: .3em 0;
}
.wsearch input:focus { outline: none; border-bottom-color: var(--lilac); }
.wsearch button { font-size: .62rem; padding: .3em 0 .3em .6em; }

.wclock { margin: 0; max-width: none; text-align: center; }
.wclock b {
  display: block;
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--lilac);
}
.wclock span {
  display: block;
  font-size: .62rem;
  text-transform: var(--label-case, uppercase);
  letter-spacing: .16em;
  color: var(--dim);
}

.wimage {
  display: block;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--img-radius, 0);
}

/* ---------- background collage ---------- */
/* Built on the Background screen; one arrangement per page, falling back to a
   shared default. Purely decorative — the scrim keeps the text readable. */

.collage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.collage-img {
  position: absolute;
  height: auto;
  max-width: none;          /* the width is set per item, in viewport % */
  transform-origin: center;
  will-change: transform;
}

.collage-scrim {
  position: absolute;
  inset: 0;
  z-index: 98;
  background: var(--void, #000);
}

@media (prefers-reduced-motion: reduce) {
  .collage-img { will-change: auto; }
}

@media print { .collage { display: none; } }
