/* julianvonbargen.com — v1 */

@font-face { font-family: 'Archivo'; src: url('fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* Day edition: two inks on paper */
:root, :root[data-edition="day"] {
  --bg: #F1EDE3; --fg: #24302B; --muted: #4A554F; --rule: rgba(36,48,43,.22); --accent: #B8452A;
  --ink1: #D2583A; --ink2: #2E6E5E; --blend: multiply; --glow: none;
  --glow-on: 0; --grain-on: .14; --rule-op: .7; --rule-glow: none;
  --off: 4px; --off-y: 2.4px; --off-big: 10px;
  color-scheme: light;
}
/* Night edition: transmission */
:root[data-edition="night"] {
  --bg: #1E1F1B; --fg: #D3CDBF; --muted: #9E998C; --rule: rgba(211,205,191,.16); --accent: #D49A84;
  --ink1: #E0D9CA; --ink2: #D08C74; --blend: screen; --glow: 0 0 30px rgba(208,140,116,.25);
  --glow-on: 1; --grain-on: .06; --rule-op: .55; --rule-glow: 0 0 12px rgba(208,140,116,.6);
  --off: 3px; --off-y: 0px; --off-big: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: 'Newsreader', Georgia, serif; position: relative; overflow-x: hidden;
  transition: background .6s, color .6s;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* Atmosphere */
.glow { position: absolute; pointer-events: none; opacity: var(--glow-on); transition: opacity .8s; }
.glow--sage { left: -10%; top: 260px; width: 70%; height: 460px; background: radial-gradient(ellipse at 45% 50%, rgba(143,179,154,.28), rgba(143,179,154,0) 62%); filter: blur(30px); }
.glow--copper { right: 0; top: 160px; width: 50%; height: 640px; background: radial-gradient(ellipse at 50% 45%, rgba(208,140,116,.16), rgba(208,140,116,0) 60%); }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--grain-on); pointer-events: none; }

.page { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 80px; }

/* Registration rules through the I */
.vrule { position: absolute; bottom: 0; width: 1px; pointer-events: none; opacity: var(--rule-op); box-shadow: var(--rule-glow); top: var(--line-top, 900px); left: var(--line-x, 330px); }
.vrule--1 { background: var(--ink1); }
.vrule--2 { background: var(--ink2); transform: translateX(var(--off-big)); }
@media (max-width: 760px) { .vrule { display: none; } }

/* Two-ink type */
.reg { position: relative; display: block; }
.reg > .l1 { display: block; color: var(--ink1); mix-blend-mode: var(--blend); text-shadow: var(--glow); }
.reg > .l2 { position: absolute; left: 0; top: 0; right: 0; color: var(--ink2); mix-blend-mode: var(--blend); pointer-events: none; transform: translate(var(--off), var(--off-y)); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.shift { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.zone:hover .reg > .l2, .zone:hover .shift { transform: translate(0, 0); }

/* Header */
.site-header { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 20px 0; color: var(--muted); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.toggle { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: transparent; color: var(--fg); border: 1px solid currentColor; padding: 10px 14px; min-height: 44px; cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 36px 0 80px; }
.name { margin: 0; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(26px, 7vw, 100px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.tagline { margin: 20px 0 0; font-size: clamp(19px, 1.8vw, 24px); font-style: italic; color: var(--accent); }
.signal { margin: 64px 0 0; max-width: 980px; border-top: 2px solid var(--fg); padding-top: 18px; }
.signal__status { color: var(--muted); margin-bottom: 20px; }
.signal blockquote { margin: 0; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.15; font-weight: 400; text-wrap: balance; }
.signal__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 24px; }
.signal__author { color: var(--muted); }

/* Sections */
.plate { position: relative; display: flex; flex-wrap: wrap; gap: 16px 64px; padding: 36px 0 64px; }
.plate__rule, .plate__rule--2 { position: absolute; left: 0; right: 0; top: 0; height: 2px; mix-blend-mode: var(--blend); }
.plate__rule { background: var(--ink1); }
.plate__rule--2 { background: var(--ink2); transform: translate(var(--off-big), var(--off)); }
.plate__label { flex: 0 0 220px; }
.plate__num { color: var(--accent); }
.plate__title { margin: 8px 0 0; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 26px; text-transform: uppercase; }
.plate__body { flex: 999 1 520px; min-width: 0; }
.prose { max-width: 640px; font-size: 20px; line-height: 1.6; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.line:first-child { padding-top: 0; }
.line .muted, .muted { color: var(--muted); }
.line .accent { color: var(--accent); }
.c-org { flex: 1 1 160px; font-size: 22px; }
.c-role { flex: 2 1 260px; font-size: 17px; }
.c-project { flex: 1 1 180px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 26px; }
.c-desc { flex: 2 1 280px; font-size: 18px; line-height: 1.5; }
.c-title { flex: 3 1 300px; font-size: 21px; }
.c-venue { flex: 1 1 160px; font-style: italic; }
.c-kind { flex: 0 0 96px; }
.c-item { flex: 1 1 220px; font-size: 20px; }
.c-item small { font-size: 15px; }

/* Footer */
.site-footer { position: relative; padding: 24px 0 0; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); }
.site-footer .email { color: var(--fg); text-transform: none; letter-spacing: .04em; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  :root[data-edition] { --off: 2px; --off-y: 1.2px; --off-big: 6px; }
  .name { white-space: normal; font-size: 15.5vw; line-height: .88; }
  .hero { padding-top: 24px; }
  .signal { margin-top: 48px; }
  .signal blockquote { font-size: 26px; line-height: 1.2; }
  .site-header { gap: 12px 24px; }
  /* Currently: label, item, then credit, stacked and left-aligned */
  .c-kind { flex: 0 0 100%; }
  .c-item, .c-by { flex: 1 1 100%; }
  .c-by { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .reg > .l2, .shift, body { transition: none; }
}
