:root {
  color: #28222e;
  background: #f6f1e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #28222e;
  --muted: #756d78;
  --paper: #fffdf8;
  --paper-deep: #eee5d8;
  --night: #17131d;
  --night-soft: #28212e;
  --coral: #e86e52;
  --coral-dark: #bd4a35;
  --gold: #e9b354;
  --green: #4d806d;
  --line: rgba(58, 46, 61, 0.16);
  --shadow: 0 24px 60px rgba(43, 31, 42, 0.11);
  --post-content-font-current: Georgia, "Times New Roman", serif;
  --post-content-size-current: 17px;
  --post-content-line-height-current: 1.72;
  --post-content-letter-spacing-current: normal;
  --post-content-font: var(--post-content-font-current);
  --post-content-size: var(--post-content-size-current);
  --post-content-line-height: var(--post-content-line-height-current);
  --post-content-letter-spacing: var(--post-content-letter-spacing-current);
  --post-content-link: #9f382b;
  --post-content-link-highlight: rgba(232, 110, 82, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 6% 18%, rgba(232, 110, 82, 0.1), transparent 23rem),
    linear-gradient(180deg, #fbf7ef 0%, #f4eee5 100%);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.site-header,
.hero,
.feed,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-viewport {
  overflow-x: clip;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px 9px 13px 8px;
  background: var(--coral);
  color: #fffaf3;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 800;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 #2c2630;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--coral-dark);
}

.hero {
  isolation: isolate;
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
  padding: 76px 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.93;
  letter-spacing: -0.058em;
}

.hero h1 em {
  color: var(--coral);
  font-weight: 500;
}

.hero-intro {
  max-width: 620px;
  margin: 28px 0 0;
  color: #5e5661;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--night);
  background: var(--night);
  color: #fffaf3;
  box-shadow: 0 8px 0 rgba(40, 34, 46, 0.12);
}

.button.quiet {
  background: rgba(255, 253, 248, 0.55);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 38px;
  margin: 42px 0 0;
}

.hero-metrics div {
  min-width: 110px;
}

.hero-metrics dt {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  width: min(100%, 440px);
  justify-self: end;
  margin: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  top: 4%;
  bottom: 8%;
  left: 50%;
  width: 200vw;
  z-index: -1;
  border: 1px solid rgba(75, 56, 104, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(rgba(75, 56, 104, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 56, 104, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(116, 86, 163, 0.16), rgba(255, 253, 248, 0.36) 70%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 28px 60px rgba(64, 45, 91, 0.09);
  transform: translateX(-50%) rotate(-1.2deg);
}

.hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.feed {
  padding: 38px 0 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.04em;
}

.feed-source {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(77, 128, 109, 0.13);
}

.feed-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 0.35fr);
  gap: 14px;
}

.feed-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feed-controls input,
.feed-controls select {
  width: 100%;
  min-height: 49px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.feed-controls input:focus,
.feed-controls select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(232, 110, 82, 0.12);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.status-row button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55);
  color: #5e5661;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.status-row button span {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  place-items: center;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(40, 34, 46, 0.08);
  font-size: 10px;
}

.status-row button:hover,
.status-row button:focus-visible,
.status-row button.active {
  border-color: var(--night);
  background: var(--night);
  color: #fffaf3;
}

.status-row button.active span {
  background: rgba(255, 255, 255, 0.14);
}

.feed-notice {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 750;
}

.feed-notice:empty {
  min-height: 0;
  margin: 0;
}

.feed-summary {
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.updates-grid {
  display: grid;
  gap: 28px;
}

.update-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px 17px 24px 18px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(45, 35, 46, 0.07);
}

.update-header,
.update-body,
.update-footer {
  padding-inline: clamp(22px, 4vw, 48px);
}

.update-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 38px;
}

.project-name {
  margin: 0 0 7px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.update-header h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(27px, 3.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.update-timing {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.update-body {
  max-width: 890px;
  padding-top: 24px;
  padding-bottom: 32px;
  color: #514a54;
  font-family: var(--post-content-font);
  font-size: var(--post-content-size);
  font-weight: 400;
  letter-spacing: var(--post-content-letter-spacing);
  line-height: var(--post-content-line-height);
}

.update-body p {
  margin: 0 0 1em;
}

.update-body p:last-child {
  margin-bottom: 0;
}

.update-body h4,
.update-body h5,
.update-body h6 {
  margin: 1.25em 0 0.45em;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: normal;
  line-height: 1.35;
}

.update-body ul,
.update-body ol {
  margin: 0.25em 0 1.1em;
  padding-left: 1.35em;
}

.update-body li + li {
  margin-top: 0.3em;
}

.update-body blockquote {
  margin: 1em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--coral);
  color: #655b63;
  font-style: italic;
}

.update-body a {
  border-radius: 2px;
  color: var(--post-content-link);
  font-weight: 700;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  box-shadow: inset 0 -0.16em var(--post-content-link-highlight);
}

.update-body a:hover {
  background: var(--post-content-link-highlight);
  color: #7f2d22;
}

.update-body a:focus-visible {
  outline: 3px solid var(--post-content-link-highlight);
  outline-offset: 3px;
}

.update-body code {
  padding: 0.12em 0.32em;
  border-radius: 4px;
  background: var(--paper-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84em;
  letter-spacing: normal;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.media-gallery.count-1 {
  grid-template-columns: 1fr;
}

.media-gallery figure {
  min-width: 0;
  margin: 0;
  background: #ebe4da;
}

.media-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e7dfd4;
  cursor: zoom-in;
}

.media-gallery img,
.media-gallery video {
  display: block;
  width: 100%;
  max-height: 620px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #16131a;
}

.media-gallery img.contain {
  object-fit: contain;
}

.media-gallery figcaption {
  min-height: 53px;
  padding: 12px 16px 14px;
  background: var(--paper);
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
}

.update-footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #f1ebe2;
  color: #746b74;
  font-size: 10px;
  font-weight: 750;
}

.update-links {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
  font-size: 12px;
  font-weight: 800;
}

.update-links a {
  color: var(--coral-dark);
  text-decoration: none;
}

.status {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8e1d8;
  color: #655d66;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-build,
.status-milestone {
  background: #dcebe3;
  color: #356a56;
}

.status-feedback {
  background: #f6e6bc;
  color: #805f16;
}

.feed-state {
  grid-column: 1 / -1;
  padding: 50px 26px;
  border: 1px dashed rgba(62, 51, 64, 0.25);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.5);
  text-align: center;
}

.feed-state h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 25px;
}

.feed-state p {
  margin: 9px 0 0;
  color: var(--muted);
}

.site-footer {
  min-height: 160px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  line-height: 1.5;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--coral-dark);
  font-weight: 800;
  text-decoration: none;
}

.lightbox {
  width: min(1100px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #17131d;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lightbox::backdrop {
  background: rgba(18, 14, 22, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.lightbox p {
  margin: 10px 44px 2px 8px;
  color: #ddd3dd;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--night);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .hero-art {
    width: min(100%, 440px);
    justify-self: center;
    margin-inline: auto;
  }

  .media-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .feed,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 70px;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 0;
    gap: 54px;
    padding: 42px 0 40px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-metrics {
    gap: 18px;
  }

  .hero-metrics div {
    min-width: 92px;
  }

  .feed {
    padding: 38px 0 90px;
  }

  .section-heading,
  .update-header,
  .update-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    display: flex;
  }

  .feed-controls {
    grid-template-columns: 1fr;
  }

  .update-header {
    display: flex;
    gap: 16px;
  }

  .update-timing {
    display: flex;
    gap: 12px;
    text-align: left;
  }

  .update-footer {
    display: flex;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
    padding: 30px 0;
  }

  .site-footer > a {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
