:root{
    --white: #fbfdff;
    --black: #000000;
  
    --max: 680px;
    --pad: clamp(22px, 4.0vw, 44px);
    --gap: clamp(12px, 2vw, 20px);
  }
  
  /* Reset */
  *,
  *::before,
  *::after{
    box-sizing: border-box;
  }
  
  html{
    -webkit-text-size-adjust: 100%;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
  }
  
  /* BODY: no longer the vertical layout container */
  body{
margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: "Gupter", serif;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0;
    overflow: hidden;
  }

  
  /* Ink shading — extremely subtle */
  body, p, a, li, label, input, textarea, button, small, h1, h2, h3{
    text-shadow:
      0.25px 0.25px 0 rgba(0, 0, 0, 0.25),
      -0.2px 0 0 rgba(0, 140, 255, 0.08);
  }
  
  .super-links a{
    text-decoration: none;
  }
  
  /* Selection */
  ::selection{
    background: var(--black);
    color: var(--white);
    text-shadow: none;
  }
  
  .selected-look{
    background: var(--black);
    color: var(--white);
    text-shadow: none;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 0.7px;
  }
  
  
:focus-visible{
    outline: 2px solid var(--black);
    outline-offset: 2px;
  }
  
  /* =========================
     TWO-PAGE SPREAD LAYOUT
     ========================= */
  
  /* Two columns on wide screens */
  .spread{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  
    height: 100vh;
  }
  
  /* Each page behaves like your old body layout (push footer down) */
  .page{
    height: 100vh;
    display: flex;
    flex-direction: column;
  
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Keep main growing so footer sits low (per page) */
  .page > main{
    flex: 1;
  }
  
  /* Stack pages on small screens */
  @media (max-width: 1100px){
    .spread{
      grid-template-columns: 1fr;
    }
  }
  
  /* =========================
     ORIGINAL LAYOUT RULES
     ========================= */
  
  .container{
    margin: 0;
    padding: var(--pad);
    max-width: var(--max);
    width: 100%;
  }
  
  .page--right .container{
    padding-right: calc(var(--pad) + 26px);
    padding-left: calc(var(--pad) - 10px);
  }

  .hero .container{
    padding-top: 0;
  }
  
  /* Header / Nav */
  header.site-header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
  }
  
  .nav{
    max-width: var(--max);
    margin: 0;
    padding: 14px var(--pad);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--gap);
  }
  
  .brand{
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
  }
  
  .nav-links{
    display: flex;
    gap: 16px;
  }
  
  .nav-links a{
    color: var(--black);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
  
  /* Hero */
  .hero{
    padding-top: 2px;
    padding-bottom: 14px;
  }
  
  /* Typography */
  .kicker{
    margin: 0 0 2px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  
  h1, h2, h3{
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-weight: 700;
    font-family: inherit;
  }
  
  h1{ font-size: 34px; }
  h2{ font-size: clamp(18px, 2.4vw, 24px); margin-top: 36px; }
  h3{ font-size: 16px; margin-top: 22px; }
  
  .subtitle{
    max-width: 70ch;
    font-size: 14px;
  }

  .subtitle-row .subtitle-box{
    flex: 1 1 auto;
  }  
  
  .subtitle-box{
    max-width: 70ch;
    font-size: 14px;
    border: 1px solid red;
  }
  
  p{
    margin: 0 0 6px 0;
    font-size: 14px;
  }
  
  small, .small{
    font-size: 13px;
  }

  .medium{
    font-size: 13.5px;
  }
  
  /* Links */
  a{
    color: var(--black);
    text-decoration: underline;
  }
  
  a:hover{
    background: var(--black);
    color: var(--white);
    text-shadow: none;
  }
  
  /* Sections */
  section{
    padding: 12px 0;
  }
  
  .section-title{
    margin-bottom: 12px;
  }
  
  .section-title .meta{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  
  /* Grid */
  .grid{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
  }
  
  .col-6{ grid-column: span 6; }
  .col-12{ grid-column: span 12; }
  
  @media (max-width: 860px){
    .col-6{ grid-column: span 12; }
  }
  
  /* Cards */
  .card{
    background: var(--white);
    padding: 16px 0;
  }
  
  .entry{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .entry .title{
    display: flex;
    justify-content: space-between;
  }
  
  .entry .date{
    font-size: 12px;
  }
  
  /* Tags */
  .tags{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .tag{
    font-size: 12px;
  }
  
  /* Buttons */
  .button,
  button{
    appearance: none;
    border: none;
    background: none;
    color: var(--black);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
  }
  
  .button:hover,
  button:hover{
    background: var(--black);
    color: var(--white);
    text-shadow: none;
  }
  
  /* Forms */
  form{
    display: grid;
    gap: 14px;
  }
  
  label{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  
  input, textarea{
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--black);
    background: var(--white);
    border: none;
    border-bottom: 1px solid var(--black);
    padding: 6px 0;
    outline: none;
  }
  
  textarea{
    min-height: 120px;
    resize: vertical;
  }
  
  input:focus, textarea:focus{
    outline: none;
  }
  
  /* Footer — per page */
  footer{
    margin-top: auto;
    padding-top: 6vh;
    padding-bottom: 4vh;
  }
  
  .footer-inner{
    max-width: var(--max);
    margin: 0;
    padding: 0 var(--pad);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce){
    *{
      transition: none !important;
      animation: none !important;
    }
  }

  /* =========================
   RIGHT PAGE TOGGLE
   ========================= */

.spread-toggle{
  display: inline-block;
  margin-top: 14px;

  background: var(--black);
  color: var(--white);

  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;

  padding: 8px 14px;
  cursor: pointer;
  user-select: none;

  text-shadow: none;
}

.spread-toggle:hover{
  background: var(--white);
  color: var(--black);
  outline: 1px solid var(--black);
}

  

/* When "hidden": keep the right page column in the grid, but hide its contents */
.page--right.is-hidden > header,
.page--right.is-hidden > main,
.page--right.is-hidden > footer{
  visibility: hidden;
}

/* Prevent accidental selection/clicks when hidden */
.page--right.is-hidden{
  pointer-events: none;
}

.page-toggle-dot{
  display: inline-block;
  cursor: pointer;

  /* visual */
  font-size: 22px;        /* adjust for weight */
  font-weight: 900;
  line-height: 1;
  color: var(--black);

  /* no button feel */
  background: none;
  border: none;
  padding: 0;
  margin: 0;

  /* subtle affordance */
  opacity: 0.85;
}

.page-toggle-dot:hover{
  opacity: 1;
}

.page-toggle-dot:active{
  transform: translateY(0.5px);
}


/* Subtitle box + toggle dot alignment */
.subtitle-row{
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 70ch;
}

.subtitle-row .subtitle-box{
  margin: 0;
}

.subtitle-row .page-toggle-dot{
  flex: 0 0 auto;
}


.email-anchor{
  position: static;   /* allow popover to anchor to .footer-inner */
}

.email-section{
  right: 0;           /* align to footer's right edge */
}




/* Desktop-only: slightly increase max width so headline highlight padding never forces a wrap */
@media (min-width: 1100px){
  :root{
    --max: 720px;
  }
}
