:root{
  --bg:#E9E9E5;
  --ink:#20211F;
  --accent:#2452D6;
  --paper:#F8F7F2;
  --muted:#60615D;
  --line:rgba(32,33,31,.16);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; animation:none !important; }
  html{ scroll-behavior:auto; }
}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  background-color:var(--bg);
  /* Fine monochrome paper grain: background only, never over text or cards. */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23000' opacity='.045' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  background-size:180px 180px;
  color:var(--ink);
  font-family:"Noto Sans SC",-apple-system,"Segoe UI",sans-serif;
  padding-inline:clamp(20px,4vw,48px);
}
a{ color:inherit; text-decoration:none; }
a:focus-visible, summary:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; }

/* .page is the overall content column: this is the width to adjust when the
   whole layout should read narrower/wider, independent of the internal hero grid.
   It's a flex column so the footer pins to the viewport bottom on short pages
   instead of leaving dead space below it on tall screens. */
.page{
  max-width:1280px;
  width:100%;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  container-type:inline-size;
}
.page > main{ flex:1 0 auto; }

/* ---- header ---- */
header.site{
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center; min-height:90px; border-bottom:1px solid var(--line);
  gap:16px; padding-block:16px; position:relative;
}
nav.primary{
  grid-column:2; display:flex; align-items:center; gap:12px;
}
header.site > .btn-hi{ grid-column:3; justify-self:end; }
nav.primary a{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; font-size:0.95rem; font-weight:700; padding:10px 18px;
  border:0; border-radius:2px; white-space:nowrap;
  transition:background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
nav.primary a[aria-current="page"]{
  background:var(--accent); color:var(--paper);
  transform:rotate(-2deg); box-shadow:0 3px 0 rgba(32,33,31,.12);
}
@media (hover:hover){
  nav.primary a:not([aria-current="page"]):hover{
    background:var(--paper); transform:translateY(-3px) rotate(-1deg);
    box-shadow:0 4px 10px rgba(32,33,31,.08);
  }
  nav.primary a[aria-current="page"]:hover{ transform:translateY(-2px) rotate(0deg); }
}
.btn-hi{
  background:var(--accent); color:var(--paper); font-weight:700; font-size:0.9rem;
  padding:10px 18px; border-radius:6px; display:inline-flex; align-items:center; gap:6px;
  border:none; font-family:inherit; cursor:pointer;
}
.btn-hi:hover{ filter:brightness(1.08); }

/* ---- contact dialog ---- */
.contact-dialog{
  position:relative; border:1.5px solid var(--ink); border-radius:4px;
  padding:30px 32px 26px; background:var(--paper); color:var(--ink);
  box-shadow:0 16px 32px rgba(0,0,0,.2); max-width:320px; width:calc(100% - 40px);
}
.contact-dialog::backdrop{ background:rgba(32,33,31,.45); }
.contact-dialog .dialog-close{
  position:absolute; top:8px; right:8px; background:none; border:none;
  font-size:1.3rem; line-height:1; cursor:pointer; color:var(--muted); padding:8px;
  font-family:inherit;
}
.contact-dialog .dialog-close:hover{ color:var(--ink); }
.contact-dialog .dialog-label{
  font-size:0.78rem; color:var(--muted); margin:0 0 6px; letter-spacing:.03em;
}
.contact-dialog .dialog-email{
  font-size:1.15rem; font-weight:700; margin:0 0 20px; word-break:break-all;
}
.contact-dialog .dialog-copy{
  background:var(--accent); color:var(--paper); border:none; border-radius:4px;
  padding:9px 18px; font-weight:700; font-size:0.85rem; cursor:pointer; font-family:inherit;
}
.contact-dialog .dialog-copy:hover{ filter:brightness(1.08); }

.mobile-home{
  display:none; font-family:"Archivo Black","Arial Black",sans-serif;
  font-size:1.5rem; line-height:1; align-items:flex-start; gap:2px;
  min-height:44px; padding-block:10px;
}
.mobile-home span{ color:var(--accent); font-size:.55em; }
.nav-mobile{ display:none; position:relative; margin-left:auto; }
.nav-mobile summary{
  list-style:none; cursor:pointer; font-weight:700; font-size:0.92rem;
  padding:10px 14px; border:1.5px solid var(--ink); border-radius:6px;
}
.nav-mobile summary::-webkit-details-marker{ display:none; }
.mobile-menu{
  position:absolute; right:0; top:calc(100% + 8px); z-index:10;
  background:var(--paper); border-radius:8px; box-shadow:0 12px 24px rgba(0,0,0,.16);
  padding:10px; display:flex; flex-direction:column; gap:4px; min-width:160px;
}
.mobile-menu a{ padding:10px 12px; border-radius:6px; }
.mobile-menu a[aria-current="page"]{ background:var(--accent); color:var(--paper); font-weight:700; transform:rotate(-2deg); border-radius:2px; }
.mobile-menu .btn-hi{ justify-content:center; margin-top:4px; }

@media (max-width:860px){
  nav.primary, .btn-hi.desktop-only{ display:none; }
  header.site{ display:flex; justify-content:space-between; }
  .nav-mobile{ display:block; }
  .mobile-home{ display:inline-flex; }
  /* the homepage already shows the giant Lex right below */
  body:has(main.hero) .mobile-home{ visibility:hidden; }
}

/* ---- hero ---- */
main.hero{
  display:grid; grid-template-columns:1.35fr 1fr; gap:20px;
  padding-block:min(9vw,72px) 40px; align-items:start;
  align-content:center; /* on tall viewports, center the hero row in the
    leftover space instead of leaving a gap above the footer */
}

.identity{ min-width:0; }
.wordmark{
  font-family:"Archivo Black","Arial Black",sans-serif;
  font-size:clamp(3.2rem, 22cqw, 24rem);
  line-height:0.82;
  position:relative; display:inline-block;
  color:var(--ink); margin:0;
}
.wordmark .star{
  position:absolute; top:0.02em; right:-0.52em;
  font-size:0.34em; color:var(--accent); line-height:1;
}
.tag{
  display:inline-block; background:var(--accent); color:var(--paper);
  font-weight:700; font-size:clamp(1rem,2.4cqw,1.3rem);
  padding:8px 16px; margin:22px 0 20px; transform:rotate(-1.5deg);
}
.identity-description{
  margin:28px 0 16px;
  max-width:32em;
  color:var(--muted);
  font-size:clamp(1rem,1.75cqw,1.35rem);
  font-weight:700;
  line-height:1.8;
  text-wrap:pretty;
  display:flex; flex-wrap:wrap; gap:4px 0;
}
.identity-description .identity-part{ white-space:nowrap; }
.identity-part + .identity-part::before{ content:"|"; color:rgba(32,33,31,.3); font-weight:400; padding-inline:.55em; }

.intro{
  font-size:clamp(1rem,2cqw,1.2rem); line-height:1.65; color:var(--ink);
  max-width:30ch; margin:0;
}

@media (max-width:860px){
  main.hero{ grid-template-columns:1fr; padding-block:36px 8px; align-content:start; }
  .identity{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    column-gap:16px;
  }
  .wordmark{
    grid-column:1;
    font-size:clamp(2.8rem, 15cqw, 4rem);
    margin-right:0.25em;
    margin:0;
  }
  .identity-description{
    grid-column:2;
    margin:0;
    max-width:none;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
    font-size:clamp(0.75rem, 3.4vw, 0.85rem);
    line-height:1.4;
    text-align:right;
  }
  .identity-description .identity-part{ white-space:nowrap; }
  .identity-description .identity-part + .identity-part::before{ display:none; }
  .intro{
    grid-column:1 / -1;
    max-width:none;
    width:100%;
    margin-top:18px;
    font-size:1rem;
    line-height:1.65;
  }
}

/* ---- entry cards ---- */
.entries{ position:relative; min-height:0; }
@media (max-width:860px){
  .entries{ display:flex; flex-direction:column; gap:20px; margin-top:12px; }
  .entries .card{ width:100%; }
}
@media (min-width:861px){
  .entries{ min-height:390px; transform:translateX(-24px); }
  .entries::before{
    content:""; position:absolute; top:-44px; right:-12px; width:calc(100% + 28px); height:410px; z-index:0;
    pointer-events:none;
    /* A faint texture behind the cards, not a square panel. */
    background-image:
      linear-gradient(rgba(32,33,31,.075) 1px, transparent 1px),
      linear-gradient(90deg, rgba(32,33,31,.075) 1px, transparent 1px);
    background-size:28px 28px;
    -webkit-mask-image:radial-gradient(ellipse at 54% 48%, #000 12%, rgba(0,0,0,.65) 42%, transparent 72%);
    mask-image:radial-gradient(ellipse at 54% 48%, #000 12%, rgba(0,0,0,.65) 42%, transparent 72%);
  }
}

.card{
  display:block; background:var(--paper); border-radius:4px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  padding:18px 20px; width:min(220px,80%);
  position:relative;
  transition:transform 180ms ease, box-shadow 180ms ease;
}
.card h3{ margin:0 0 10px; font-size:1rem; font-weight:700; display:flex; align-items:center; gap:6px; }
.card .lines span{ display:block; height:2px; background:currentColor; opacity:.35; margin-bottom:8px; border-radius:1px; }
.card .lines span:last-child{ width:60%; margin-bottom:0; }

@media (min-width:861px){
  .entries .card{ width:min(280px,82%); padding-top:24px; padding-bottom:24px; }
  .entries .card h3{ font-size:1.1rem; }
  .card.paper1{ position:absolute; top:0; right:24%; transform:rotate(-6deg); z-index:1; }
  .card.folder{ position:absolute; top:116px; right:0; transform:rotate(4deg); z-index:2; }
  .card.notebook{ position:absolute; top:244px; right:18%; transform:rotate(-3deg); z-index:1; }
}

.card.paper1::after{
  content:""; position:absolute; top:0; right:0; width:0; height:0;
  border-style:solid; border-width:0 18px 18px 0;
  border-color:transparent var(--bg) transparent transparent;
}
.card.folder{ background:var(--accent); color:var(--paper); }
.card.folder::before{
  content:""; position:absolute; top:-10px; left:16px; width:56px; height:14px;
  background:var(--accent); border-radius:4px 4px 0 0;
}
.card.notebook{ padding-left:30px; }
.card.notebook .rings{
  position:absolute; left:8px; top:14px; bottom:14px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.card.notebook .rings span{
  width:8px; height:8px; border-radius:50%; border:2px solid var(--muted);
  background:var(--bg); display:block;
}

.card:hover{
  transform:translateY(-3px) rotate(0deg);
  box-shadow:0 16px 30px rgba(0,0,0,.16);
}

/* ---- footer row ---- */
.foot{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:16px; padding-block:28px 40px; border-top:1px solid var(--line);
  margin-top:8px;
}
.social{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.social{ gap:4px 8px; }
.social a{
  display:inline-flex; align-items:center; min-height:44px;
  padding:0 14px; font-size:0.92rem; font-weight:700; border-radius:999px;
  border:1.5px solid transparent;
  transition:border-color 150ms ease, color 150ms ease;
}
.social a:first-child{ border-color:var(--accent); }
.social a:hover{ border-color:var(--ink); }
.social a:first-child:hover{ background:var(--accent); color:var(--paper); }
.welcome{ font-size:0.82rem; color:var(--muted); display:flex; align-items:center; gap:10px; }
.welcome .rule{ width:40px; height:1px; background:var(--line); display:inline-block; }

/* ==================================================
   Inner-page hero (关于我 / 产品 / 随笔 share one pattern)
   ================================================== */

.page-hero{
  padding-block:56px 40px;
  border-bottom:1px solid var(--line);
}
.page-hero h1{
  font-size:0.85rem; font-weight:700; color:var(--muted);
  letter-spacing:0.04em; margin:0 0 18px;
}
.page-hero .statement{
  color:var(--ink);
  font-weight:900;
  font-size:clamp(1.7rem, 6.4cqw, 3.1rem);
  line-height:1.3;
  max-width:22ch;
  margin:0 0 26px;
  text-wrap:balance;
}
.page-hero .statement:last-child{ margin-bottom:0; }
.page-hero .statement .hl{
  background:var(--accent); color:var(--paper); padding:0 8px;
  display:inline-block; transform:rotate(-1deg);
}

/* ==================================================
   产品 page
   ================================================== */

.product-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
  padding-block:40px 72px;
}
@media (max-width:860px){
  .product-grid{ grid-template-columns:1fr; }
}

.product-card{
  background:var(--paper); border-radius:4px; padding:26px 20px 20px;
  box-shadow:0 12px 24px rgba(0,0,0,.12); position:relative;
  display:flex; flex-direction:column; gap:10px; min-height:220px;
}
/* Flagship product: full row, screenshot laid on the desk like a print. */
.product-featured{
  grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
  gap:36px; align-items:center; padding:32px; min-height:0;
}
.product-featured .product-body{ display:flex; flex-direction:column; gap:12px; }
.product-featured h3{ font-size:clamp(1.6rem,3.4cqw,2.2rem); }
.product-featured .desc{ font-size:1rem; line-height:1.75; flex:none; }
.product-shot{
  display:block; border-radius:6px; overflow:hidden;
  border:1px solid var(--line); box-shadow:0 14px 30px rgba(32,33,31,.14);
  transform:rotate(-1.2deg); transition:transform 200ms ease, box-shadow 200ms ease;
}
.product-shot img{ display:block; width:100%; height:auto; }
@media (hover:hover) and (pointer:fine){
  .product-shot:hover{ transform:translateY(-3px) rotate(0deg); box-shadow:0 18px 36px rgba(32,33,31,.18); }
}
/* Screenshot stage: phones peek up from a sheet of grid paper. */
.product-stage{
  position:relative; height:280px; margin:-26px -20px 12px; overflow:hidden;
  border-radius:4px 4px 0 0; border-bottom:1px solid var(--line);
  background-color:var(--bg);
  background-image:
    linear-gradient(rgba(32,33,31,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,33,31,.06) 1px, transparent 1px);
  background-size:24px 24px;
}
.product-stage .shot{
  position:absolute; top:32px; left:50%; width:150px; height:auto;
  border-radius:14px; box-shadow:0 12px 26px rgba(32,33,31,.18);
  transition:transform 220ms cubic-bezier(.2,.7,.2,1);
}
.shot-solo{ width:176px !important; top:24px !important; border-radius:0 !important; box-shadow:none !important; filter:drop-shadow(0 12px 18px rgba(32,33,31,.2)); transform:translateX(-50%) rotate(-3deg); }
.shot-center{ z-index:2; transform:translateX(-50%); }
.shot-left{ transform:translateX(-118%) translateY(22px) rotate(-7deg); }
.shot-right{ transform:translateX(18%) translateY(22px) rotate(7deg); }
@media (hover:hover) and (pointer:fine){
  .product-card:hover .shot-solo{ transform:translateX(-50%) translateY(-8px) rotate(0deg); }
  .product-card:hover .shot-center{ transform:translateX(-50%) translateY(-8px); }
  .product-card:hover .shot-left{ transform:translateX(-128%) translateY(14px) rotate(-10deg); }
  .product-card:hover .shot-right{ transform:translateX(28%) translateY(14px) rotate(10deg); }
}
@media (max-width:860px){
  .product-stage{ height:240px; }
  .product-stage .shot{ width:128px; }
  .shot-solo{ width:150px !important; }
}
.product-grid:has(.product-featured){ grid-template-columns:repeat(2,1fr); }
@media (max-width:860px){
  .product-grid:has(.product-featured){ grid-template-columns:1fr; }
  .product-featured{ grid-template-columns:1fr; gap:24px; padding:20px; }
  .product-shot{ transform:rotate(-0.8deg); }
}
.product-card::before{
  content:""; position:absolute; top:-10px; left:16px; width:44px; height:12px;
  background:var(--accent); border-radius:4px 4px 0 0;
}
.product-card .kind{
  font-size:0.72rem; font-weight:700; color:var(--accent);
  letter-spacing:.04em;
}
.product-card h3{ margin:0; font-size:1.3rem; font-weight:900; }
.product-card .desc{ margin:0; font-size:0.92rem; line-height:1.6; color:var(--ink); flex:1; }
.product-card .access{
  display:inline-flex; align-items:center; min-height:44px; align-self:flex-start;
  font-size:0.85rem; font-weight:700; color:var(--accent); margin-top:auto;
  background:none; border:none; padding:0; font-family:inherit; cursor:pointer; text-align:left;
}
.product-card .access:hover{ text-decoration:underline; text-underline-offset:3px; }
.product-card .access-note{ font-size:0.82rem; color:var(--muted); margin:0; margin-top:auto; }

.qr-trigger{ position:relative; margin-top:auto; }
.qr-trigger .qr-popup{
  position:absolute; bottom:calc(100% + 10px); left:0;
  background:var(--paper); border-radius:8px; box-shadow:0 12px 24px rgba(0,0,0,.18);
  padding:10px; opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity 160ms ease, transform 160ms ease; z-index:20;
  pointer-events:none;
}
@media (hover:hover) and (pointer:fine){
  .qr-trigger:hover .qr-popup,
  .qr-trigger:focus-within .qr-popup{
    opacity:1; visibility:visible; transform:translateY(0);
  }
}
.qr-popup img{ display:block; width:150px; height:150px; border-radius:4px; }
@media (max-width:860px){
  .qr-trigger .qr-popup{ display:none; }
}


/* ==================================================
   随笔 page
   ================================================== */

.notes-empty{
  position:relative; max-width:480px; margin:36px auto 80px;
  padding:28px 28px 28px 54px;
  background-color:var(--paper);
  background-image:repeating-linear-gradient(var(--paper) 0px, var(--paper) 27px, var(--line) 28px);
  border-radius:4px; box-shadow:0 12px 24px rgba(0,0,0,.12);
  transform:rotate(-1deg);
}
.notes-empty .rings{
  position:absolute; left:16px; top:24px; bottom:24px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.notes-empty .rings span{
  width:9px; height:9px; border-radius:50%; border:2px solid var(--muted);
  background:var(--bg); display:block;
}
.notes-empty p{ margin:0; font-size:1rem; line-height:28px; padding-bottom:28px; color:var(--muted); }

/* Future post cards can reuse this shape once there is real content to place. */
.note-card{
  background:var(--paper); border-radius:4px; box-shadow:0 12px 24px rgba(0,0,0,.12);
  padding:22px 24px; margin-bottom:24px;
}
.note-card time{ font-size:0.78rem; color:var(--muted); }
.note-card h3{ margin:8px 0 8px; font-size:1.15rem; font-weight:900; }
.note-card p{ margin:0; font-size:0.95rem; line-height:1.7; color:var(--ink); }

/* ==================================================
   产品 page · 免费小工具 (lighter tier, below the main grid)
   ================================================== */

.tools-section{
  padding-block:8px 72px; margin-top:8px; border-top:1px solid var(--line);
}
.tools-section h2{
  font-weight:900; font-size:clamp(1.3rem, 4.5cqw, 1.8rem); margin:32px 0 24px;
}

.tool-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
}
@media (max-width:860px){
  .tool-grid{ grid-template-columns:1fr; }
}
.tool-card{
  background:var(--paper); border:1.5px dashed var(--muted); border-radius:4px;
  padding:20px 18px; display:flex; flex-direction:column; gap:8px; min-height:150px;
}
.tool-card h3{ margin:0; font-size:1.05rem; font-weight:900; }
.tool-card h3 a{ color:inherit; }
.tool-card h3 a:hover{ color:var(--accent); text-decoration:underline; }
.tool-card p{ margin:0; font-size:0.88rem; line-height:1.5; color:var(--ink); flex:1; }
.tool-card .tool-pending{ font-size:0.85rem; color:var(--muted); margin-top:auto; }
.tool-card .tool-download{
  display:inline-flex; align-items:center; justify-content:center;
  align-self:flex-start; margin-top:auto;
  background:var(--accent); color:var(--paper); font-weight:700; font-size:0.82rem;
  padding:8px 14px; border-radius:4px;
}
.tool-card .tool-download:hover{ filter:brightness(1.08); }

/* About: centered prose and alternating paper chronology. */
main.about{ width:100%; }
.story-copy{ max-width:42em; }
.journey{ max-width:960px; margin-inline:auto !important; }
.story-copy{ font-size:clamp(1rem,1.8cqw,1.15rem); line-height:1.95; font-family:"Noto Serif SC",Georgia,serif; }
.story-copy p{ margin:0 0 18px; }.story-copy p:last-child{ margin-bottom:0; }
.journey-section{ padding:40px 0 64px; }
.journey-heading{ margin-bottom:32px; }.journey-heading h2{ margin:0; font-size:clamp(1.2rem,2.7cqw,1.6rem); }
.journey{ list-style:none; position:relative; padding:8px 0 16px; margin:0; }
.journey::before{ content:""; position:absolute; left:50%; top:20px; bottom:40px; width:1px; background:var(--line); }
.journey li{ width:calc(50% - 34px); margin-bottom:24px; position:relative; }
.journey li:nth-child(even){ margin-left:calc(50% + 34px); }
.journey time{ display:block; margin-bottom:12px; color:var(--accent); font-size:1rem; font-weight:700; font-variant-numeric:tabular-nums; }
.journey li:nth-child(odd) time{ text-align:right; }
.journey-event{ position:relative; width:100%; max-width:340px; padding:22px 24px; background:var(--paper); border-radius:4px; box-shadow:0 10px 24px rgba(32,33,31,.09); transition:transform 220ms cubic-bezier(.2,.7,.2,1),box-shadow 220ms ease; }
.journey li:nth-child(odd) .journey-event{ margin-left:auto; transform:rotate(-1.5deg); transform-origin:right center; }
.journey li:nth-child(even) .journey-event{ transform:rotate(1.5deg); transform-origin:left center; }
.journey li::before{ content:""; position:absolute; top:5px; width:10px; height:10px; border:2px solid var(--accent); border-radius:50%; background:var(--bg); }
.journey li:nth-child(odd)::before{ right:-41px; }.journey li:nth-child(even)::before{ left:-41px; }
.journey-title{ display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; }
.journey-title h3{ margin:0; font-size:1.12rem; line-height:1.6; }
.journey-event p{ color:var(--muted); margin:8px 0 0; font-size:.93rem; line-height:1.7; }
.journey-place{ display:inline-flex; align-items:center; gap:5px; font-size:.8rem; font-weight:400; font-style:italic; letter-spacing:.02em; line-height:1.6; color:var(--muted); }
.place-icon{ width:15px; height:15px; flex:none; opacity:.8; }
.journey-now .journey-event{ background:var(--accent); color:var(--paper); }
.journey-now .journey-event p{ color:var(--paper); }.journey-now .journey-place{ color:rgba(248,247,242,.85); }
.journey li.journey-now::before{ background:var(--accent); box-shadow:0 0 0 4px rgba(36,82,214,.1); }
@media(hover:hover) and (pointer:fine){
 .journey li:nth-child(odd) .journey-event:hover,.journey li:nth-child(even) .journey-event:hover{ transform:translateY(-5px) rotate(0deg); box-shadow:0 17px 30px rgba(32,33,31,.15); }
}
@media(max-width:600px){
 .journey::before{ left:5px; }
 .journey li,.journey li:nth-child(even){ width:calc(100% - 32px); margin-left:32px; margin-bottom:28px; }
 .journey time{ font-size:.85rem; }.journey-title h3{ font-size:1rem; }
 .journey li:nth-child(odd) time{ text-align:left; }
 .journey li:nth-child(odd)::before,.journey li:nth-child(even)::before{ left:-34px; right:auto; }
 .journey li:nth-child(odd) .journey-event,.journey li:nth-child(even) .journey-event{ transform:none; }
 .journey-event{ max-width:none; padding:18px; }
}
.qr-dialog{ padding:48px 20px 20px; max-width:calc(100vw - 40px); border:1px solid var(--line); border-radius:6px; background:var(--paper); box-shadow:0 18px 50px rgba(0,0,0,.2); }
.qr-dialog::backdrop{ background:rgba(32,33,31,.45); }
.qr-dialog img{ display:block; width:min(240px,65vw); height:auto; }
.qr-dialog .dialog-close{ position:absolute; right:4px; top:4px; width:44px; height:44px; font-size:1.5rem; color:var(--ink); background:none; border:0; cursor:pointer; }
button:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; }
.not-found{ width:100%; padding:64px 0; }
.not-found .error-code{ font-family:"Archivo Black",sans-serif; font-size:clamp(6rem,20vw,12rem); color:var(--accent); margin:0; line-height:1.1; }
.not-found h1{ font-size:clamp(1.5rem,4vw,2.5rem); }.not-found p{ line-height:1.8; }

@media(max-width:600px){
 .page-hero .statement{ font-size:clamp(1.3rem,6.3vw,1.7rem); max-width:none; text-wrap:initial; }
 .title-phrase{ display:block; white-space:nowrap; }
}
