/* Text + Pix — the zine's Riso inks (Aqua and Light Lime) on paper.
   Aqua and lime are display inks only: too light for small text.
   Text accents, links and buttons use --deep, a dark aqua.
   Change the colors here and the whole site follows. */
:root {
  --paper: #f7f8f6;
  --ink: #1d2433;
  --muted: #59606e;
  --rule: #d3d7dd;
  /* Riso inks from measured L*a*b* (D65), converted to sRGB:
     Aqua L73 a-31 b-25; Light Lime L87 a-11 b70. */
  --aqua: #02c5e0;
  --lime: #ecdd4b;
  --deep: #006070;      /* dark aqua for text, links, buttons */
  --link: var(--deep);
  --field: #ffffff;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151821;
    --ink: #e7e9ef;
    --muted: #a3a9b6;
    --rule: #333847;
    --aqua: #02c5e0;
    --lime: #ecdd4b;
    --deep: #7fd3e6;
    --link: #7fd3e6;
    --field: #1d212c;
  }
}
:root[data-theme="dark"] {
  --paper: #151821; --ink: #e7e9ef; --muted: #a3a9b6; --rule: #333847;
  --aqua: #02c5e0; --lime: #ecdd4b; --deep: #7fd3e6; --link: #7fd3e6; --field: #1d212c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--serif);
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 0.5rem; background: var(--paper); padding: 0.5rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; font-stretch: 100%; }
h1 { font-size: var(--step-3); font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }

/* Header ------------------------------------------------------------ */
.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.2em;
  font: 700 1.5rem/1 var(--sans); font-stretch: 112%;
  color: var(--ink); text-decoration: none;
}
.brand .brand-text { font-family: var(--serif); font-weight: 600; font-stretch: normal; }
.brand .mark { width: 0.85em; height: 0.85em; color: var(--aqua); }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a {
  font: 500 1rem/1.4 var(--sans); color: var(--ink); text-decoration: none;
  padding: 0.25rem 0; border-bottom: 2px solid transparent;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--aqua); }
.site-header nav .nav-join { color: var(--deep); }

main { padding: 0 var(--gutter) 4rem; }

/* Home: the misregistered two-ink wordmark ---------------------------- */
.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 2.5rem; border-bottom: 1px solid var(--rule); }
.hero-mark {
  position: relative; display: grid; margin: 0 0 2rem;
  font-size: clamp(4.5rem, 17vw, 13rem); line-height: 0.9; font-stretch: 100%;
}
.plate { grid-area: 1 / 1; display: flex; align-items: center; gap: 0.06em; white-space: nowrap; }
.plate .w-text { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }
.plate .w-pix { font-family: var(--sans); font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }
.plate .mark { width: 0.55em; height: 0.55em; flex: none; margin: 0 0.04em; }
.plate-a { color: var(--aqua); }
.plate-b { color: var(--lime); mix-blend-mode: multiply; transform: translate(0.035em, 0.025em); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plate-b { mix-blend-mode: screen; } }
:root[data-theme="dark"] .plate-b { mix-blend-mode: screen; }

@media (prefers-reduced-motion: no-preference) {
  .plate-b { animation: register 1.4s cubic-bezier(.2,.7,.2,1) 0.2s both; }
  @keyframes register { from { transform: translate(0.12em, -0.06em); opacity: 0; } to { transform: translate(0.035em, 0.025em); opacity: 1; } }
}
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 32rem; }

.next, .how { padding-top: 2.5rem; max-width: 60rem; }
.next > h2, .how > h2 { font-size: var(--step-0); font-weight: 600; color: var(--muted); }
.next-list .event:not(:first-of-type) { display: none; }
.how p { max-width: var(--measure); }
.more { font-family: var(--sans); font-weight: 500; margin-top: 1rem; }

/* Interior pages ------------------------------------------------------ */
.page-head { padding: clamp(2rem, 6vw, 4rem) 0 1.5rem; max-width: 44rem; }
.page-head p { color: var(--muted); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-1); margin-top: 2rem; }
.empty { color: var(--muted); max-width: var(--measure); }

/* Events ------------------------------------------------------------- */
.event-list, .semester { max-width: 60rem; }
.event {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0 2rem; padding: 1.75rem 0; border-top: 1px solid var(--rule);
}
.event-date { margin: 0; font-family: var(--sans); line-height: 1; }
.event-month { display: block; font-size: 3.25rem; font-weight: 800; font-stretch: 125%; color: var(--deep); letter-spacing: -0.02em; }
.event-day { display: block; margin-top: 0.35rem; font-size: var(--step-1); font-weight: 600; }
.event-year { display: block; margin-top: 0.3rem; font-size: 0.875rem; color: var(--muted); }
.event-body { max-width: var(--measure); }
.event-body h3 { margin-bottom: 0.3em; }
.presenters { list-style: none; margin: 0 0 0.75rem; padding: 0; font-size: var(--step-1); line-height: 1.35; }
.presenters .note { font-size: var(--step-0); color: var(--muted); }
.event-when { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.event-image { grid-column: 2; margin: 1rem 0 0; max-width: 28rem; }

.semester h2 { font-size: var(--step-1); padding-top: 2.5rem; }
.event-past { grid-template-columns: 9rem minmax(0, 1fr); padding: 1.1rem 0; }
.event-past .event-month { font-size: 2rem; color: var(--ink); }
.event-past h3 { font-size: var(--step-0); font-weight: 500; color: var(--muted); }
.event-past .presenters { margin: 0; }

@media (max-width: 34rem) {
  .event, .event-past { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0 0.75rem; }
  .event-month { font-size: 1.9rem; }
  .event-day { font-size: 1.125rem; }
  .event-image { grid-column: 1 / -1; }
}

/* Buttons and forms --------------------------------------------------- */
.button, .signup button {
  display: inline-block; font: 600 1rem/1 var(--sans);
  padding: 0.8rem 1.2rem; border: 2px solid var(--deep); border-radius: 2px;
  background: var(--deep); color: var(--paper); text-decoration: none; cursor: pointer;
}
.button:hover, .signup button:hover { background: var(--ink); border-color: var(--ink); }

/* Publications -------------------------------------------------------- */
.pubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 3rem 2rem; max-width: 64rem; }
.pub img { margin-bottom: 1rem; border: 1px solid var(--rule); }
.pub h2 { font-size: var(--step-1); }
.pub-year, .pub-by, .pub-details { color: var(--muted); font-weight: 400; }
.pub-by, .pub-details { margin: 0 0 0.4em; font-family: var(--sans); font-size: 1rem; }
.pub-price { font-family: var(--sans); font-weight: 700; margin-right: 0.75rem; }
.pub-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

/* Footer -------------------------------------------------------------- */
.site-footer {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem 4rem;
  padding: 3rem var(--gutter); border-top: 4px solid var(--aqua);
}
.join h2 { font-size: var(--step-2); }
.join > p { max-width: 30rem; }
.signup label { display: block; font: 500 1rem/1.4 var(--sans); margin-bottom: 0.4rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 30rem; }
.signup input[type="email"] {
  flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1rem;
  padding: 0.7rem 0.8rem; border: 1px solid var(--muted); border-radius: 2px;
  background: var(--field); color: var(--ink);
}
.footer-meta { font-family: var(--sans); font-size: 1rem; align-self: end; }
.social { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: 1rem; }
.fine { color: var(--muted); font-size: var(--step--1); }

@media (max-width: 48rem) {
  .site-footer { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; }
}
.signup .trap { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }
.page-head .about-lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink); }
.mark .mark-hole { fill: var(--paper); }
.plate .mark { width: 0.68em; height: 0.68em; }
/* Registration mark: heavier strokes in the big wordmark and at small sizes */
.plate .mark .mark-ring { stroke-width: 9; }
.plate .mark .mark-hair { stroke-width: 3.6; }
.brand .mark .mark-ring { stroke-width: 11; }
.brand .mark .mark-hair { stroke-width: 6; }
.brand .mark { width: 1em; height: 1em; }
