/* ==========================================================================
   Iztagram — design tokens first, then layout.
   Eight colors only. Borders 2px ink. Shadows hard (no blur).
   ========================================================================== */

   :root {
    --ink: #1A1626;
    --cream: #FFF8EC;
    --paper: #FFFFFF;
    --cobalt: #2B4FF0;
    --tangerine: #FF5A1F;
    --lime: #C6F24E;
    --magenta: #FF2E9A;
    --grey: #6B6480;
  
    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Space Grotesk", system-ui, sans-serif;
    --font-mono: "Space Mono", ui-monospace, monospace;
  
    --border: 2px solid var(--ink);
    --radius-card: 6px;
    --radius-sq: 9px;
    --radius-pill: 999px;
    --shadow-card: 11px 11px 0 var(--ink);
    --shadow-sticker: 5px 5px 0 var(--ink);
    --shadow-btn: 3px 3px 0 var(--ink);
    --ease: 180ms ease;
    --focus: 0 0 0 2px var(--cream), 0 0 0 5px var(--ink);
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background-color: var(--cream);
    background-image: radial-gradient(rgba(26, 22, 38, 0.13) 1.4px, transparent 1.4px);
    background-size: 24px 24px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  
  img,
  svg {
    display: block;
    max-width: 100%;
  }
  
  a {
    color: var(--cobalt);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  button,
  input {
    font: inherit;
    color: inherit;
  }
  
  button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }
  
  ul,
  ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  p,
  h1,
  h2 {
    margin: 0;
  }
  
  :focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
  }
  
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--tangerine);
    color: var(--ink);
    border: var(--border);
    font-weight: 700;
    transition: top var(--ease);
  }
  
  .skip-link:focus {
    top: 12px;
  }

  /* --------------------------------------------------------------------------
     Password gate — top bar stays; everything else waits behind the lock
     -------------------------------------------------------------------------- */

  html:not(.gate-ok) .site-app {
    display: none !important;
  }

  html.gate-ok .gate {
    display: none !important;
  }

  .gate {
    display: flex;
    justify-content: center;
    padding: 48px 24px 80px;
  }

  .gate__card {
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 24px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }

  .gate__stamp {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    background: var(--lime);
    border: var(--border);
    border-radius: var(--radius-pill);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .gate__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .gate__hint {
    color: var(--grey);
    font-size: 14.5px;
    margin-bottom: 18px;
  }

  .gate__input {
    display: block;
    width: 100%;
    height: 48px;
    margin-bottom: 14px;
    padding: 0 14px;
    background: var(--cream);
    border: var(--border);
    border-radius: 8px;
    font-size: 16px;
  }

  .gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    background: var(--tangerine);
    color: var(--ink);
    border: var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-btn);
    font-weight: 700;
    font-size: 15px;
    transition: transform var(--ease), box-shadow var(--ease);
  }

  .gate__btn:hover,
  .gate__btn:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
  }

  .gate__error {
    margin-top: 12px;
    color: var(--magenta);
    font-weight: 700;
    font-size: 14px;
  }

  .gate__error[hidden] {
    display: none;
  }
  
  .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  
  .icon--lg {
    width: 27px;
    height: 27px;
  }
  
  /* --------------------------------------------------------------------------
     Top bar
     -------------------------------------------------------------------------- */
  
  .top-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 78px;
    padding: 0 60px;
    border-bottom: var(--border);
    background: var(--cream);
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
  }
  
  .brand:hover {
    text-decoration: none;
  }
  
  .brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--tangerine);
    border: var(--border);
    border-radius: var(--radius-sq);
    box-shadow: 3px 3px 0 var(--ink);
  }
  
  .brand__ring {
    width: 11px;
    height: 11px;
    border: 2px solid var(--ink);
    border-radius: 50%;
  }
  
  .brand__word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 27px;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  
  .search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 330px;
    height: 42px;
    padding: 0 16px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-pill);
    color: var(--grey);
    flex-shrink: 0;
  }
  
  .search-pill input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--ink);
    min-width: 0;
  }
  
  .search-pill input::placeholder {
    color: var(--grey);
  }
  
  .search-pill input:disabled {
    opacity: 1;
    cursor: default;
  }
  
  .top-bar__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
  }
  
  .icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
    border-radius: 8px;
    transition: transform var(--ease);
  }
  
  .icon-btn:hover,
  .icon-btn:focus-visible {
    transform: scale(1.12) rotate(-6deg);
    text-decoration: none;
  }
  
  .icon-btn.is-liked,
  .action-heart.is-liked {
    color: var(--magenta);
  }
  
  .icon-btn.is-liked .heart-path,
  .action-heart.is-liked .heart-path {
    fill: var(--magenta);
    stroke: var(--magenta);
  }
  
  /* Avatars */
  
  .avatar {
    display: grid;
    place-items: center;
    border: var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
  }
  
  .avatar--lime {
    background: var(--lime);
  }
  
  .avatar--sm {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .avatar--md {
    width: 46px;
    height: 46px;
    font-size: 16px;
    box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink);
  }
  
  .avatar--tab {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-width: 2px;
  }
  
  .avatar__initial {
    line-height: 1;
  }
  
  /* --------------------------------------------------------------------------
     Highlights
     -------------------------------------------------------------------------- */
  
  .highlights {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    min-height: 122px;
    /* Extra bottom padding so the border clears the rings + labels */
    padding: 24px 60px 28px;
    border-bottom: var(--border);
    background: var(--cream);
  }
  
  .highlights__list {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
  }
  
  .highlights__list::-webkit-scrollbar {
    display: none;
  }
  
  .highlights__item {
    width: 84px;
    flex-shrink: 0;
  }
  
  .highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    min-height: 44px;
  }
  
  .highlight:hover {
    text-decoration: none;
  }
  
  .highlight__ring {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid var(--ink);
    padding: 3px;
    transition: border-width var(--ease);
  }
  
  .highlight:hover .highlight__ring,
  .highlight:focus-visible .highlight__ring {
    border-width: 4px;
  }
  
  .highlight__ring--tangerine { border-color: var(--tangerine); }
  .highlight__ring--cobalt { border-color: var(--cobalt); }
  .highlight__ring--magenta { border-color: var(--magenta); }
  .highlight__ring--lime { border-color: var(--lime); }
  .highlight__ring--ink { border-color: var(--ink); }
  .highlight__ring--ink-dash {
    border-color: var(--ink);
    border-style: dashed;
  }
  
  .highlight__inner {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: var(--border);
  }
  
  .highlight__inner--cobalt { background: var(--cobalt); }
  .highlight__inner--lime { background: var(--lime); }
  .highlight__inner--paper { background: var(--paper); }
  .highlight__inner--magenta { background: var(--magenta); }
  .highlight__inner--tangerine { background: var(--tangerine); }
  
  .highlight__label {
    margin-top: 9px;
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
  }
  
  .highlights__stamp {
    flex-shrink: 0;
    align-self: center;
    margin-left: auto;
    padding: 8px 12px;
    background: var(--lime);
    border: var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sticker);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: rotate(-3deg);
    white-space: nowrap;
  }
  
  /* Flat glyphs inside rings */
  
  .glyph {
    display: block;
    border: 2px solid var(--ink);
  }
  
  .glyph--circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cream);
  }
  
  .glyph--square {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: var(--ink);
  }
  
  .glyph--bars {
    width: 22px;
    height: 16px;
    border: 0;
    background:
      linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 3px no-repeat,
      linear-gradient(var(--ink), var(--ink)) 0 6.5px / 100% 3px no-repeat,
      linear-gradient(var(--ink), var(--ink)) 0 13px / 70% 3px no-repeat;
  }
  
  .glyph--diamond {
    width: 16px;
    height: 16px;
    background: var(--cream);
    transform: rotate(45deg);
  }
  
  .glyph--triangle {
    width: 0;
    height: 0;
    border: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid var(--ink);
    background: transparent;
  }
  
  .glyph--dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--lime);
  }
  
  /* --------------------------------------------------------------------------
     Content band
     -------------------------------------------------------------------------- */
  
.content {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 44px 222px 80px;
}

/* Cap the post+rail block at 996px of content (640 + 56 + 300) and center it */
@media (min-width: 1440px) {
  .content {
    justify-content: center;
    padding-left: max(222px, calc((100% - 996px) / 2));
    padding-right: max(222px, calc((100% - 996px) / 2));
  }

  .panels {
    padding-left: max(222px, calc((100% - 996px) / 2));
    padding-right: max(222px, calc((100% - 996px) / 2));
  }
}
  
  /* --------------------------------------------------------------------------
     Post card
     -------------------------------------------------------------------------- */
  
  .post {
    width: 640px;
    flex-shrink: 0;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }
  
  .post__header {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 72px;
    padding: 0 18px;
    border-bottom: var(--border);
  }
  
  .post__identity {
    min-width: 0;
  }
  
  .post__handle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
  }
  
  .status-dot {
    width: 9px;
    height: 9px;
    background: var(--magenta);
    border: 2px solid var(--ink);
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .post__sub {
    color: var(--grey);
    font-size: 13.5px;
    line-height: 1.3;
  }
  
  .post__more-dots {
    display: flex;
    gap: 4px;
    margin-left: auto;
  }
  
  .post__more-dots span {
    width: 4.5px;
    height: 4.5px;
    background: var(--ink);
    border-radius: 50%;
  }
  
  /* Cover */
  
  .cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 636px;
    background: var(--cobalt);
    overflow: hidden;
    color: var(--cream);
  }
  
  .cover__blob {
    position: absolute;
    border: var(--border);
    pointer-events: none;
  }
  
  .cover__blob--tangerine {
    width: 310px;
    height: 310px;
    top: -104px;
    right: -84px;
    border-radius: 50%;
    background: var(--tangerine);
  }
  
  .cover__blob--lime {
    width: 290px;
    height: 290px;
    bottom: -120px;
    left: -90px;
    border-radius: 50%;
    background: var(--lime);
  }
  
  .cover__blob--magenta {
    width: 84px;
    height: 84px;
    top: 210px;
    right: 54px;
    background: var(--magenta);
    transform: rotate(18deg);
  }
  
  .cover__stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 42px 44px;
  }
  
  .cover__stamp {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream);
  }
  
  .cover__bottom {
    max-width: 78%;
  }
  
  .cover__headline {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 92px;
    line-height: 0.88;
    letter-spacing: -0.035em;
    color: var(--cream);
    margin-bottom: 18px;
  }
  
  .cover__intro {
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    background: var(--lime);
    border: var(--border);
    box-shadow: 5px 5px 0 var(--ink);
    color: var(--ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
  }
  
  .cover__sticker {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 2;
    padding: 8px 12px;
    background: var(--cream);
    color: var(--ink);
    border: var(--border);
    border-radius: var(--radius-pill);
    box-shadow: 4px 4px 0 var(--ink);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(-7deg);
    white-space: nowrap;
  }
  
  /* Actions */
  
  .actions {
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 14px 0 10px;
    border-top: var(--border);
  }
  
.actions__left {
  display: flex;
  align-items: center;
  gap: 18px;
}
  
  .actions__left .icon-btn {
    width: 44px;
    height: 44px;
  }
  
  .actions > .icon-btn:last-child {
    margin-left: auto;
  }
  
  /* Meta */
  
  .meta {
    padding: 4px 18px 18px;
  }
  
  .meta__likes {
    margin-bottom: 8px;
    font-size: 14.5px;
    font-weight: 500;
  }
  
  .meta__caption {
    margin-bottom: 10px;
    font-size: 14.5px;
  }
  
  .meta__author {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    margin-right: 6px;
  }
  
  .meta__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 10px;
  }
  
  .tag {
    display: inline-block;
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 3px;
    color: var(--cobalt);
    font-weight: 700;
    font-size: 15px;
    transition: background var(--ease), color var(--ease);
  }
  
  .tag:hover,
  .tag:focus-visible {
    background: var(--lime);
    color: var(--ink);
    text-decoration: none;
  }
  
  .meta__view-all {
    margin-bottom: 12px;
    font-size: 13.5px;
  }
  
  .meta__view-all a {
    color: var(--grey);
  }
  
.meta__comments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.meta__comment {
  margin-bottom: 0;
  font-size: 14.5px;
}
  
  .meta__comment-author {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    color: var(--ink);
    margin-right: 6px;
  }
  
  .meta__stamp {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--grey);
  }
  
  /* Composer */
  
  .composer {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 62px;
    padding: 0 14px 0 18px;
    border-top: var(--border);
  }
  
  .composer__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: var(--border);
    background: var(--lime);
    flex-shrink: 0;
  }
  
  .composer__input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 0;
    background: transparent;
    outline: none;
  }
  
  .composer__input::placeholder {
    color: var(--grey);
  }
  
  .composer__send {
    height: 38px;
    padding: 0 18px;
    background: var(--tangerine);
    color: var(--ink);
    border: var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-btn);
    font-weight: 700;
    font-size: 14px;
    transition: transform var(--ease), box-shadow var(--ease);
  }
  
  .composer__send:hover,
  .composer__send:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
  }
  
  .composer__success {
    padding: 0 18px 14px;
    font-size: 14.5px;
    color: var(--ink);
    border-top: 0;
  }
  
  .composer__success[hidden] {
    display: none;
  }
  
  /* --------------------------------------------------------------------------
     Right rail
     -------------------------------------------------------------------------- */
  
  .rail {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-top: 8px;
  }
  
  .rail__sticker {
    align-self: flex-start;
    padding: 8px 14px;
    background: var(--magenta);
    color: var(--cream);
    border: var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sticker);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transform: rotate(4deg);
  }
  
  .rail__profile {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .rail__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
  }
  
  .rail__handle {
    color: var(--grey);
    font-size: 13.5px;
  }
  
  .rail__heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .rail__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .rail__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    color: var(--ink);
    text-decoration: none;
    transition: transform var(--ease), box-shadow var(--ease);
  }
  
  .rail__row:hover,
  .rail__row:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
    text-decoration: none;
  }
  
  .rail__chip {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: var(--border);
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .rail__chip--cobalt { background: var(--cobalt); color: var(--cream); }
  .rail__chip--lime { background: var(--lime); color: var(--ink); }
  .rail__chip--tangerine { background: var(--tangerine); color: var(--ink); }
  .rail__chip--magenta { background: var(--magenta); color: var(--cream); }
  
  .rail__row-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  
  .rail__row-title {
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.2;
  }
  
  .rail__row-handle {
    color: var(--grey);
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .rail__rule {
    border: 0;
    border-top: var(--border);
    margin: 0;
  }
  
  .rail__footer {
    font-size: 12px;
    line-height: 1.55;
    color: var(--grey);
  }
  
  /* Section panels below the post */
  
  .panels {
    width: 100%;
    max-width: calc(996px + 444px);
    margin: 0 auto;
    padding: 0 222px 120px;
    display: grid;
    gap: 18px;
  }
  
  .panel {
    scroll-margin-top: 24px;
    padding: 22px 24px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    box-shadow: 5px 5px 0 var(--ink);
  }
  
  .panel__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 8px;
  }

  .panel__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .panel__text {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .poem {
    margin: 0;
    padding: 16px 18px;
    background: var(--cream);
    border: var(--border);
    border-radius: var(--radius-card);
    box-shadow: 3px 3px 0 var(--ink);
  }

  .poem__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 2px;
  }

  .poem__by {
    color: var(--grey);
    font-size: 12.5px;
    margin-bottom: 12px;
  }

  .poem__lines {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .panel a {
    font-weight: 700;
  }
  
  .sections {
    display: none;
  }
  
  /* Mobile tab bar — desktop hidden */
  
  .tab-bar {
    display: none;
  }
  
  /* --------------------------------------------------------------------------
     Responsive — one breakpoint at 900px
     -------------------------------------------------------------------------- */
  
  @media (max-width: 899.98px) {
    body {
      padding-bottom: 64px;
    }
  
    .top-bar {
      height: 56px;
      padding: 0 16px;
      gap: 16px;
    }
  
    .brand__word {
      font-size: 21px;
    }
  
    .search-pill {
      display: none;
    }
  
    .top-bar__actions {
      gap: 8px;
    }
  
    .highlights {
      height: auto;
      min-height: 110px;
      padding: 18px 16px 24px;
      gap: 12px;
    }
  
    .highlights__list {
      gap: 18px;
    }
  
    .highlights__item {
      width: 64px;
    }
  
    .highlight__ring {
      width: 56px;
      height: 56px;
    }
  
    .highlight__inner {
      width: 44px;
      height: 44px;
    }
  
    .highlights__stamp {
      display: none;
    }
  
    .content {
      flex-direction: column;
      gap: 0;
      max-width: none;
      padding: 0 0 40px;
    }
  
    .post {
      width: 100%;
      border-left: 0;
      border-right: 0;
      border-radius: 0;
      box-shadow: none;
    }
  
    .cover {
      max-height: none;
    }
  
    .cover__stack {
      padding: 24px;
    }
  
    .cover__headline {
      font-size: 54px;
    }
  
    .cover__intro {
      font-size: 15px;
    }
  
    .cover__sticker {
      right: 16px;
      bottom: 16px;
      font-size: 10px;
      padding: 6px 10px;
    }
  
    .cover__blob--magenta {
      right: 24px;
      top: 160px;
      width: 64px;
      height: 64px;
    }
  
    .rail {
      width: 100%;
      padding: 28px 16px 24px;
      gap: 20px;
    }
  
    .rail__sticker {
      transform: rotate(-2deg);
    }
  
    .panels {
      max-width: none;
      padding: 0 16px 100px;
    }
  
    .tab-bar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: space-around;
      height: 64px;
      background: var(--paper);
      border-top: var(--border);
    }
  
    .tab-bar__item {
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      color: var(--ink);
      text-decoration: none;
      border-radius: 8px;
    }
  
    .tab-bar__item:hover {
      text-decoration: none;
    }
  }
  
  /* Between 900 and ~1440 the content padding holds; above 1440 content caps */
  
  @media (min-width: 900px) {
    .content {
      max-width: 1440px;
    }
  
    .panels {
      max-width: 1440px;
    }
  }
  
  /* Prefer reduced motion: color only, no transforms */
  
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  
    *,
    *::before,
    *::after {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
    }
  
    .icon-btn:hover,
    .icon-btn:focus-visible,
    .composer__send:hover,
    .composer__send:focus-visible,
    .rail__row:hover,
    .rail__row:focus-visible,
    .highlights__stamp,
    .cover__sticker,
    .cover__blob--magenta,
    .rail__sticker {
      transform: none !important;
    }
  
    .rail__row:hover,
    .rail__row:focus-visible {
      box-shadow: 4px 4px 0 var(--ink);
    }
  }
  