/* GREEZELOUISE portfolio — editorial style.
   Paper, ink and one accent. Instrument Serif for display, Inter for text, JetBrains Mono for labels. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #141413;
  --ink-2: #3d3b37;
  --muted: #5b5852;
  --rule: #c9c3b6;
  --accent: #d9482b;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

a:hover {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.skip:focus {
  left: 8px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

em.accent,
.accent {
  color: var(--accent);
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.masthead .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
  align-items: center;
  min-height: 64px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.masthead a {
  text-decoration: none;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -4px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.home img {
  width: 32px;
  height: 32px;
}

.home:hover {
  transform: rotate(-6deg) scale(1.06);
}

.brand {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.masthead .vol {
  color: var(--muted);
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.masthead .mail {
  justify-self: end;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 72px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11.5vw, 176px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.hero-meta .intro {
  grid-column: span 2;
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
}

.hero-meta .value {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Fanned deck ---------- */

.deck {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 88px;
  padding-bottom: 112px;
}

.deck a {
  flex: 0 0 26%;
  margin-right: -5%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 40px -24px rgba(20, 20, 19, 0.4);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.deck a:last-child {
  margin-right: 0;
}

.deck a:hover,
.deck a:focus-visible {
  transform: rotate(0deg) translateY(-14px);
  box-shadow: 0 40px 60px -30px rgba(20, 20, 19, 0.45);
  z-index: 5;
}

.deck img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.deck .c1 { --r: -7deg; --y: 36px; z-index: 1; }
.deck .c2 { --r: -3deg; --y: 10px; z-index: 2; }
.deck .c3 { --r: 0deg; --y: 0px; z-index: 3; }
.deck .c4 { --r: 3deg; --y: 10px; z-index: 2; }
.deck .c5 { --r: 7deg; --y: 36px; z-index: 1; }
.deck .bd img { object-position: top; }
.deck .capy { background: #b090ff; }
.deck .capy img { object-position: bottom; }

/* ---------- At a glance ---------- */

.glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.glance > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 32px;
  border-left: 1px solid var(--rule);
}

.glance > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.glance > div:last-child {
  padding-right: 0;
}

.glance .num {
  margin: 0;
  font-family: var(--serif);
  font-size: 96px;
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.glance .note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Index ---------- */

.index {
  padding-top: 120px;
  padding-bottom: 96px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.table-scroll {
  overflow-x: auto;
}

.table {
  min-width: 680px;
  border-top: 1px solid var(--ink);
}

.table .row {
  display: grid;
  grid-template-columns: 64px minmax(0, 2fr) minmax(0, 1.5fr) 90px 150px;
  gap: 16px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background 0.2s ease;
}

.table .row:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.table .head {
  padding: 12px 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.table .no {
  font-family: var(--mono);
  font-size: 13px;
}

.table .name {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
}

.table .type {
  font-size: 15px;
  color: var(--ink-2);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e9e5b;
}

.status.review::before {
  background: #c98a10;
}

.status.retired::before {
  background: #8a857b;
}

/* ---------- Chapters ---------- */

.chapter {
  border-top: 1px solid var(--ink);
  scroll-margin-top: 64px;
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.chapter-meta a {
  color: var(--ink);
}

.chapter-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0 48px;
}

.chapter-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 13vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.chapter-title h2.long {
  font-size: clamp(60px, 11vw, 172px);
}

.chapter-title .dek {
  margin: 0;
  max-width: 440px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  color: var(--ink-2);
}

/* Full-bleed band with a horizontal gallery */

.band {
  padding: 48px 0 40px;
}

.band.bonk { background: #f2b33d; }
.band.headsup { background: #2e2e35; }

.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) 20px;
  scroll-padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 20, 19, 0.3) transparent;
}

.band.headsup .gallery {
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(20, 20, 19, 0.28); border-radius: 3px; }
.band.headsup .gallery::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); }

.gallery figure {
  margin: 0;
  flex: 0 0 min(78%, 900px);
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

.band.bonk .gallery img {
  border-radius: 8px;
  border: 2px solid #1d1b19;
  box-shadow: 6px 6px 0 #1d1b19;
}

.gallery figcaption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: #1d1b19;
}

.band.headsup figcaption {
  color: #d9d9de;
}

.gallery-hint {
  margin: 6px auto 0;
  max-width: var(--wrap);
  padding: 0 var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d1b19;
}

.band.headsup .gallery-hint {
  color: #b8b9bf;
}

/* Three-column notes under each band */

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 120px;
}

.notes p:not(.label) {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

/* Rly.fun Launch Bot */

.band.launchbot {
  background: #221d17;
}

.band.launchbot .gallery {
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.band.launchbot .gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
}

.band.launchbot .gallery img {
  border-radius: 10px;
  border: 1px solid #3a3229;
}

.band.launchbot figcaption {
  color: #d8cbb8;
}

.band.launchbot .gallery-hint {
  color: #b3a690;
}

.pipeline-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 72px;
}

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.pipeline li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.pipeline .step {
  font-family: var(--mono);
  font-size: 13px;
  padding-top: 10px;
}

.pipeline .pull {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
}

.pipeline p:not(.pull) {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.tg {
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.tg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e3df;
}

.tg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}

.tg-name {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.tg-sub {
  margin: 0;
  font-size: 12px;
  color: #6b675f;
}

.tg-chat {
  padding: 24px 18px;
  background: #cfdcc4;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.4px);
  background-size: 14px 14px;
}

.tg-bubble {
  position: relative;
  max-width: 340px;
  padding: 12px 14px 22px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  line-height: 1.45;
}

.tg-bubble p {
  margin: 0 0 8px;
}

.tg-bubble code {
  font-family: var(--mono);
  font-size: 12px;
}

.tg-bubble .tg-link {
  margin: 0;
  color: #2a6fb0;
}

.redact {
  display: inline-block;
  background: var(--ink);
  color: var(--ink);
  border-radius: 2px;
  line-height: 1.1;
  user-select: none;
}

.tg-time {
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-size: 11px;
  color: #8a857b;
}

.tg figcaption {
  padding: 12px 16px;
  border-top: 1px solid #e3e3df;
  font-size: 11px;
}

/* Bottom Dwellers */

.band.dwellers {
  background: #cfeee0;
  padding: 64px var(--gutter);
}

.dwellers-inner {
  max-width: calc(var(--wrap) - var(--gutter) * 2);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.browser {
  flex: 999 1 640px;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 70px -40px rgba(20, 40, 30, 0.55);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: #f3f3f1;
  border-bottom: 1px solid #e3e3df;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5d5d0;
}

.url {
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e3e3df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: #5e6068;
}

.sidebar {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar .label {
  color: #1d4a36;
}

.sidebar .pull {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
}

.sidebar .body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1d3b2e;
}

/* CAPYCLUB */

.capy-hero {
  position: relative;
  background: #b090ff;
}

.capy-hero .art {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: bottom;
}

.capy-hero .logo {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(56%, 720px);
}

.capy-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  padding-top: 96px;
  padding-bottom: 120px;
}

.capy-body figure {
  margin: 0;
}

.capy-body figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.capy-body figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.capy-body figcaption .serif {
  font-size: 32px;
}

.capy-body figcaption .label {
  font-size: 12px;
}

.capy-notes {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.capy-notes p:not(.label) {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.prize {
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: #ece6f9;
}

.prize .label {
  color: #3b2a6b;
}

.prize .pull {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 28px !important;
  line-height: 1.1 !important;
}

.prize .body {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #2b2540;
}

/* ---------- About ---------- */

.about {
  background: var(--ink);
  color: var(--paper);
}

.about .wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.about .label {
  color: #a8a398;
}

.about-body {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.about .bio {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  color: #c9c4b8;
}

/* ---------- Contact ---------- */

.contact {
  padding-top: 120px;
  padding-bottom: 48px;
}

.contact .big {
  display: block;
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(36px, 7.6vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact .big:hover {
  color: var(--ink);
}

.contact .big:hover .at {
  color: var(--accent);
}

.footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 96px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer a {
  text-decoration: none;
}

.footer .top {
  justify-self: end;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .masthead .wrap {
    grid-template-columns: 1fr auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .masthead .vol,
  .masthead .mail {
    display: none;
  }
  .hero-meta,
  .glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glance > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .glance > div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
  .glance > div:nth-child(2) {
    padding-right: 0;
  }
  .notes,
  .capy-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .capy-notes {
    grid-column: span 2;
  }
  .pipeline-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-body {
    grid-column: auto;
  }
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }
  .hero-meta .intro {
    grid-column: auto;
  }
  .deck {
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .deck a {
    flex-basis: 38%;
    margin-right: -8%;
  }
  .table {
    min-width: 0;
  }
  .table .row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding: 18px 0;
  }
  .table .row > :nth-child(3),
  .table .row > :nth-child(4) {
    display: none;
  }
  .table .name {
    font-size: 30px;
  }
  .deck .c1,
  .deck .c5 {
    display: none;
  }
  .deck .c4 {
    margin-right: 0;
  }
  .glance .num {
    font-size: 64px;
  }
  .glance > div {
    padding: 20px 14px 24px;
  }
  .index {
    padding-top: 80px;
    padding-bottom: 64px;
  }
  .gallery figure {
    flex-basis: 88%;
  }
  .notes,
  .capy-body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 80px;
  }
  .capy-notes {
    grid-column: auto;
  }
  .capy-body {
    padding-top: 56px;
  }
  .capy-hero .art {
    aspect-ratio: 4 / 3;
  }
  .capy-hero .logo {
    width: 80%;
  }
  .band.dwellers {
    padding: 40px var(--gutter);
  }
  .about .wrap {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .contact {
    padding-top: 80px;
  }
  .footer {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }
  .footer .top {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .deck a,
  .table .row {
    transition: none;
  }
}
