@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Space+Mono:wght@400;700&display=swap');
:root {
  --font-bricolage: 'Bricolage Grotesque';
  --font-mono: 'Space Mono';
}
:root {
  --frame: #33564a;        /* spruce green: mullions and outer window frame */
  --frame-deep: #26413a;   /* darker spruce for depth and shadow */
  --glass: #f3f6f4;        /* glass white: the pane surface */
  --glass-edge: #e2eae6;   /* pane inner edge */
  --glass-tint: #eaf0ed;   /* faint tinted glass for nested blocks */
  --sky: #5a93b8;          /* clear sky accent */
  --sky-deep: #3f7596;
  --ink: #1b2a25;
  --ink-soft: #49594f;
  --muted: #7c8a83;
  --mullion: 9px;          /* thickness of the mullion bars between panes */
  --frame-w: 15px;         /* thickness of the outer window frame */
  --row: 208px;            /* base bento row height */
  --pane-pad: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% -12%, rgba(90, 147, 184, 0.2), transparent 40rem),
    radial-gradient(circle at 8% 4%, rgba(51, 86, 74, 0.12), transparent 34rem),
    linear-gradient(180deg, #dde6e1 0%, #e9efeb 60%, #e3ebe6 100%);
  color: var(--ink);
  font-family: var(--font-bricolage), ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--font-mono), ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: 0.01em;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--frame-deep);
  color: var(--glass);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
}
.skip-link:focus {
  top: 1rem;
}

/* ============================================================
   WINDOW-FRAME HEADER  (a slim sill strip, not a nav bar)
   ============================================================ */
.frame-sill {
  position: relative;
  background: linear-gradient(180deg, var(--frame) 0%, var(--frame-deep) 100%);
  color: var(--glass);
}
.frame-sill-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.6rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.sash-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.sash-glyph {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 24px;
  height: 24px;
  padding: 2px;
  background: var(--glass);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.sash-glyph span {
  background: var(--sky);
  border-radius: 1px;
}
.sash-glyph span:nth-child(2),
.sash-glyph span:nth-child(3) {
  background: var(--sky-deep);
}
.sash-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sash-word-a {
  color: var(--glass);
}
.sash-word-b {
  color: #aed3e2;
  font-weight: 500;
}
.frame-tagline {
  margin: 0;
  font-size: 0.82rem;
  color: #c4d6cf;
  letter-spacing: 0.005em;
}
/* the mullion line under the sill */
.frame-mullion {
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--sky-deep), var(--sky), var(--sky-deep));
  opacity: 0.85;
}

/* ============================================================
   HOME: MULLIONED WINDOW-PANE BENTO GRID
   ============================================================ */
.window-deck {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.6rem 3rem;
}
.window-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: var(--row);
  grid-auto-flow: dense;
  gap: var(--mullion);
  padding: var(--frame-w);
  background:
    linear-gradient(180deg, var(--frame) 0%, var(--frame-deep) 100%);
  border-radius: 10px;
  box-shadow:
    0 26px 60px rgba(38, 65, 58, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* pane = a single glass tile inside the mullion frame */
.pane {
  position: relative;
  background: var(--glass);
  border-radius: 4px;
  padding: var(--pane-pad);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 -1px 0 var(--glass-edge) inset;
}
.pane-wide {
  grid-column: span 2;
}
.pane-tall {
  grid-row: span 2;
}
.pane-lead {
  grid-column: span 2;
  grid-row: span 2;
}

/* ---- lead / cover pane ---- */
.lead-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(27, 42, 37, 0.1) 0%, rgba(20, 34, 30, 0.82) 100%),
    url("/images/sprucewindow-lead.jpg") center / cover no-repeat,
    linear-gradient(150deg, var(--frame) 0%, var(--sky-deep) 100%);
}
.lead-veil {
  padding: 1.8rem 1.7rem 1.7rem;
}
.lead-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bfe0ee;
}
.lead-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.lead-sub {
  margin: 0.9rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #e4efe9;
  max-width: 38ch;
}
.lead-count {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  color: #bfe0ee;
  letter-spacing: 0.04em;
}

/* ---- update panes ---- */
.update-pane {
  display: flex;
}
.pane-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.pane-date {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  color: var(--sky-deep);
  letter-spacing: 0.02em;
}
.pane-date time {
  font-variant-numeric: tabular-nums;
}
.pane-tag {
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--glass-tint);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}
.pane-change {
  margin: 0 0 0.55rem;
  font-size: 1.16rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pane-wide .pane-change {
  font-size: 1.28rem;
}
.pane-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pane-wide .pane-note {
  -webkit-line-clamp: 3;
}
.pane-tall .pane-note {
  -webkit-line-clamp: 5;
}
.pane-open {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.72rem;
  color: var(--sky-deep);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pane-open::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--sky);
}
.update-pane:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(38, 65, 58, 0.18),
    0 0 0 1.5px var(--sky) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* a small window latch in the corner of each update pane */
.pane-latch {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--glass-edge);
}
.pane-latch::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 6px;
  height: 12px;
  border-radius: 3px;
  background: var(--sky);
}

/* ---- standing identity panes ---- */
.standing-pane {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, var(--glass) 0%, var(--glass-tint) 100%);
}
.pane-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--frame);
}
.standing-line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---- watched desks pane ---- */
.watched-pane {
  display: flex;
  flex-direction: column;
}
.watched-list {
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.watched-list li a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: var(--glass-tint);
  border: 1px solid var(--glass-edge);
  color: var(--sky-deep);
  font-size: 0.86rem;
  font-weight: 500;
}
.watched-list li a:hover {
  border-color: var(--sky);
  color: var(--frame-deep);
}
.watched-note {
  margin: auto 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ============================================================
   ARTICLE: an update "through the window"
   ============================================================ */
.sash-room {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.2rem 1.6rem 3rem;
}
.sash {
  display: grid;
  gap: var(--mullion);
  padding: var(--frame-w);
  background: linear-gradient(180deg, var(--frame) 0%, var(--frame-deep) 100%);
  border-radius: 10px;
  box-shadow: 0 26px 60px rgba(38, 65, 58, 0.26);
}
.sash > .pane {
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

/* pane-framed header */
.sash-header {
  background:
    linear-gradient(180deg, var(--glass) 0%, var(--glass-tint) 100%);
}
.sash-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1rem;
  font-size: 0.76rem;
  color: var(--sky-deep);
  letter-spacing: 0.03em;
}
.sash-stamp time {
  font-variant-numeric: tabular-nums;
}
.sash-header h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.sash-intro {
  margin: 1rem 0 0;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}
.sash-tags {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sash-tags li {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--glass-tint);
  border: 1px solid var(--glass-edge);
  color: var(--frame);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* injected content pane */
.article-content {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.72;
}
.article-content > *:first-child {
  margin-top: 0;
}
.article-content > *:last-child {
  margin-bottom: 0;
}
.article-content p {
  margin: 0 0 1.15rem;
}
.article-content h2 {
  margin: 2rem 0 0.85rem;
  padding-left: 0.85rem;
  font-size: 1.32rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--frame-deep);
  border-left: 4px solid var(--sky);
}
.article-content h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--frame-deep);
}
.article-content a {
  color: var(--sky-deep);
  text-decoration: underline;
  text-decoration-color: rgba(90, 147, 184, 0.45);
  text-underline-offset: 2px;
}
.article-content a:hover {
  text-decoration-color: var(--sky-deep);
}
.article-content ul,
.article-content ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}
.article-content li {
  margin: 0 0 0.5rem;
  padding-left: 0.25rem;
}
.article-content ul li::marker {
  color: var(--sky);
}
.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.3rem;
  background:
    linear-gradient(180deg, var(--glass-tint) 0%, #e4ede9 100%);
  border-left: 5px solid var(--frame);
  border-radius: 0 8px 8px 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--frame-deep);
}
.article-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  overflow: hidden;
}
.article-content thead th {
  background: var(--frame);
  color: var(--glass);
  text-align: left;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.article-content tbody td {
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--glass-edge);
  color: var(--ink-soft);
  vertical-align: top;
}
.article-content tbody tr:nth-child(even) {
  background: var(--glass-tint);
}

/* FAQ pane */
.faq-pane {
  background:
    linear-gradient(180deg, var(--glass) 0%, var(--glass-tint) 100%);
}
.faq-pane h2 {
  margin: 0 0 1rem;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--frame-deep);
}
.faq-pane details {
  border-top: 1px solid var(--glass-edge);
  padding: 0.85rem 0;
}
.faq-pane details:last-of-type {
  border-bottom: 1px solid var(--glass-edge);
}
.faq-pane summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-pane summary::-webkit-details-marker {
  display: none;
}
.faq-pane summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--sky);
  border-bottom: 2px solid var(--sky);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-pane details[open] summary::after {
  transform: rotate(-135deg);
}
.faq-pane details p {
  margin: 0.7rem 0 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* what changed / why it matters pane */
.changed-pane {
  background:
    linear-gradient(150deg, #eef3f0 0%, #e6efe9 100%);
}
.changed-dl {
  margin: 0;
}
.changed-dl dt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--frame);
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.changed-dl dt + dd {
  margin: 0 0 1.1rem;
}
.changed-dl dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--ink-soft);
}
.changed-dl dd:last-child {
  margin-bottom: 0;
}

/* footer back link */
.sash-foot {
  display: flex;
}
.back-pane {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--glass);
  color: var(--frame-deep);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.sash-foot.pane {
  padding: 1rem;
}
.back-pane::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--sky);
}
.back-pane:hover {
  color: var(--sky-deep);
}

/* ============================================================
   PAGE FOOTER (window sill base)
   ============================================================ */
.frame-foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.6rem 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 2px solid rgba(51, 86, 74, 0.18);
}
.frame-foot-mark {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--frame-deep);
}
.frame-foot-line {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ============================================================
   RESPONSIVE: collapse the mullioned grid gracefully
   ============================================================ */
@media (max-width: 960px) {
  .window-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(190px, auto);
  }
  .pane-lead {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 320px;
  }
  .pane-tall {
    grid-row: span 1;
  }
}

@media (max-width: 620px) {
  .frame-sill-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .window-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .pane-wide,
  .pane-lead,
  .pane-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .pane {
    min-height: 168px;
  }
  .lead-cover {
    min-height: 300px;
  }
}
