/* Lain Research — serif headings, sans body.
   No mini text, no animations. Structure comes from space and type. */

:root {
  --paper: rgb(251 247 240);          /* warm cream ground */
  --paper-deep: rgb(244 235 221);     /* tinted blocks */
  --ink: rgb(48 38 26);               /* warm espresso */
  --ink-soft: rgb(92 78 60);
  --muted: rgb(148 132 110);
  --sienna: rgb(186 84 38);           /* accent */
  --sienna-deep: rgb(143 58 22);

  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

ul, ol {
  list-style: none;
}

em {
  font-style: italic;
}

::selection {
  background: rgb(247 214 178);
  color: var(--ink);
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Text links ---------- */

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-weight: 500;
  color: var(--sienna);
}

.text-link .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.text-link:hover {
  color: var(--sienna-deep);
}

.text-link:hover .arrow {
  transform: translateX(6px);
}

.text-link.quiet {
  color: var(--muted);
}

.text-link.quiet:hover {
  color: var(--ink);
}

/* ---------- Header ---------- */

.site-head {
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px 28px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
}

.wordmark-slash {
  color: var(--sienna);
  font-weight: 400;
  margin: 0 0.08em;
}

.wordmark:hover {
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--sienna);
}

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

.hero {
  padding: 64px 0 56px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 17ch;
}

.hero-headline em {
  color: var(--sienna);
}

.hero-copy {
  margin-top: 24px;
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-links {
  margin-top: 28px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

/* ---------- Announcement ---------- */

.announce {
  padding: 0 28px;
  transition: padding 0.45s var(--ease);
}

.announce-card {
  max-width: 1060px;
  margin: 0 auto;
  background: var(--paper-deep);
  border-radius: var(--radius);
  padding: clamp(32px, 4.5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  transition: max-width 0.45s var(--ease),
              border-radius 0.45s var(--ease),
              padding 0.45s var(--ease);
}

/* Image revealed only while "Continue reading" is hovered */
.announce-media {
  flex: 0 0 auto;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.45s var(--ease),
              opacity 0.45s var(--ease);
}

.announce-media img {
  display: block;
  width: clamp(200px, 26vw, 300px);
}

.announce:has(.text-link:hover) .announce-media {
  width: clamp(200px, 26vw, 300px);
  opacity: 1;
  margin-left: clamp(24px, 4vw, 48px);
}

/* Hovering "Continue reading" stretches the card edge to edge;
   the text stays in place, so you can keep scrolling or click through. */
.announce:has(.text-link:hover) {
  padding: 0;
}

.announce:has(.text-link:hover) .announce-card {
  max-width: 100%;
  border-radius: 0;
  padding-inline: max(clamp(32px, 4.5vw, 56px), calc((100% - 1060px) / 2 + 56px));
}

.announce-text h2 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.announce-sub {
  margin: 14px 0 22px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---------- Releases ---------- */

.releases {
  padding: 72px 0 40px;
}

.section-head {
  margin-bottom: 22px;
  padding: 0 clamp(16px, 3vw, 34px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.01em;
}

.release-index {
  display: grid;
  gap: 6px;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(24px, 3vw, 34px) clamp(16px, 3vw, 34px);
  border-radius: var(--radius);
  transition: background-color 0.35s var(--ease);
}

.release-row:hover {
  background-color: var(--paper-deep);
}

.release-main h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(23px, 2.6vw, 29px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  transition: color 0.25s var(--ease);
}

.release-row:hover .release-main h3 {
  color: var(--sienna-deep);
}

.release-body {
  margin: 12px 0 16px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.release-date {
  color: var(--muted);
  font-size: 16px;
  padding-top: 6px;
  white-space: nowrap;
}

/* ---------- Mission ---------- */

.mission {
  padding: 72px 0 88px;
}

.mission-heading {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  max-width: 26ch;
}

.mission-heading em {
  color: var(--sienna);
}

.featured-list {
  margin-top: 36px;
  display: grid;
}

.featured-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(14px, 2vw, 26px);
  border-radius: 16px;
  transition: background-color 0.3s var(--ease);
}

.featured-list a:hover {
  background-color: var(--paper-deep);
}

.featured-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  transition: color 0.25s var(--ease);
}

.featured-list a:hover .featured-title {
  color: var(--sienna-deep);
}

.featured-list .arrow {
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.25s var(--ease);
}

.featured-list a:hover .arrow {
  color: var(--sienna);
  transform: translateX(4px);
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--paper-deep);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 56px 0 40px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px 32px;
}

.footer-columns h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-columns ul {
  display: grid;
  gap: 9px;
}

.footer-columns a {
  font-size: 16px;
  color: var(--ink-soft);
}

.footer-columns a:hover {
  color: var(--sienna);
}

.footer-bottom {
  margin-top: 56px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-glyph {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 28px;
}

.copyright {
  color: var(--muted);
  font-size: 16px;
}

.socials {
  display: flex;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
}

.socials a {
  color: var(--ink-soft);
}

.socials a:hover {
  color: var(--sienna);
}

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

@media (max-width: 700px) {
  .announce-media {
    display: none;
  }

  .release-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .release-date {
    order: -1;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 48px 0 48px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
