:root {
  --serenity: #9fcddd;
  --taupe: #9fa7a3;
  --slate: #405a78;
  --ivory: #f6fbfb;
  --ink: #26313a;
  --muted: #647382;
  --paper: #f7fbfc;
  --panel: #fefffd;
  --line: #d5e5eb;
  --mist: #e7f4f7;
  --accent: #4e9bb4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 7px 0 6px;
  background: linear-gradient(90deg, rgba(159, 205, 221, 0.92), rgba(232, 245, 249, 0.96));
  border-bottom: 1px solid rgba(64, 90, 120, 0.42);
  backdrop-filter: blur(8px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100% - 52px, 1100px);
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 300;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid rgba(64, 90, 120, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

nav a {
  color: var(--slate);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}

main,
.article-page {
  max-width: 640px;
  margin: 0 auto;
  background: var(--ivory);
}

.hero {
  padding: 34px 0 28px;
  border-bottom: 1px solid rgba(64, 90, 120, 0.2);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

h1 {
  color: #22384c;
  font-size: 2.52rem;
  line-height: 1.06;
}

.subtitle {
  margin: 10px 0 18px;
  color: var(--slate);
  font-size: 0.96rem;
  font-weight: 400;
}

.hero-intro {
  display: block;
}

.hero-image {
  width: 100%;
  margin: 0 0 18px;
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 48%;
  border-radius: 2px;
}

.hero-quote {
  max-width: 560px;
  margin: 0;
  padding: 0;
  border-left: 0;
  color: #344555;
  font-size: 0.84rem;
  line-height: 1.48;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-quote p {
  margin: 0 0 0.8em;
}

.hero-quote p:last-child {
  margin-bottom: 0;
}

.mobile-quote {
  display: none;
}

.theo-portrait {
  margin: 0;
  justify-self: start;
  width: 76px;
}

.theo-portrait img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  filter: none;
}

.theo-portrait img {
  aspect-ratio: 1;
  object-fit: cover;
}

.about-portrait img {
  display: block;
  width: 100%;
  border: 1px solid #dddddd;
  border-radius: 4px;
  box-shadow: 7px 9px 14px rgba(42, 50, 58, 0.1);
  filter: none;
}

.theo-portrait figcaption {
  display: none;
}

.history-strip {
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}

.history-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scrollbar-width: none;
}

.history-scroller::-webkit-scrollbar {
  display: none;
}

.history-card {
  display: block;
  flex: 0 0 178px;
  min-height: 58px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-left: 3px solid rgba(78, 155, 180, 0.48);
  border-radius: 3px;
  box-shadow: none;
  color: var(--ink);
  text-decoration: none;
}

.history-card:hover,
.history-card:focus-visible {
  background: white;
  box-shadow: 0 5px 14px rgba(55, 77, 92, 0.07);
  outline: none;
  transform: translateY(-2px);
}

.history-card strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.5em;
}

.history-card span {
  color: var(--muted);
  font-size: 0.68rem;
}

.content-shell {
  padding: 0;
}

.post-grid {
  display: block;
}

.post-card {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.post-card:last-child {
  border-bottom: none;
}

.post-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card a::after {
  display: block;
  clear: both;
  content: "";
}

.post-card-copy {
  display: block;
}

.post-card a:hover h2,
.post-card a:focus-visible h2 {
  color: var(--accent);
}

.meta {
  display: block;
  margin: 0 0 10px;
  color: var(--slate);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card h2 {
  max-width: none;
  margin: 0 0 0.25em;
  font-size: 1.48rem;
  font-weight: 300;
  line-height: 1.22;
}

.post-card .date,
.article-head .date {
  margin: 0 0 1.5em;
  color: var(--muted);
  font-size: 0.74rem;
}

.post-card p {
  max-width: 430px;
  margin: 0 0 1.2em;
  color: #344555;
  font-size: 0.86rem;
  line-height: 1.55;
}

.post-card .teaser {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.read-more {
  color: #1f4e65;
  font-size: 0.82rem;
  font-weight: 400;
}

.visual {
  position: relative;
  width: 176px;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--serenity), rgba(247, 250, 249, 0.95));
  box-shadow: none;
}

.post-card .visual {
  width: 218px;
  margin: 0 0 16px 26px;
  float: right;
}

.post-card.image-left .visual {
  float: left;
  margin: 0 26px 16px 0;
}

.post-card.image-right .visual {
  float: right;
  margin: 0 0 16px 26px;
}

.visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.visual span,
.visual i,
.visual b {
  position: absolute;
  display: block;
}

.visual-window span {
  inset: 28px 24px;
  border: 2px solid rgba(84, 98, 120, 0.56);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
}

.visual-window i {
  width: 54px;
  height: 3px;
  left: 56px;
  bottom: 34px;
  background: var(--slate);
}

.visual-window b {
  width: 30px;
  height: 3px;
  left: 56px;
  bottom: 46px;
  background: var(--taupe);
}

.visual-mirror span {
  width: 78px;
  height: 78px;
  left: 28px;
  top: 18px;
  border: 2px solid rgba(84, 98, 120, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
}

.visual-mirror i {
  width: 70px;
  height: 70px;
  right: 34px;
  top: 25px;
  border-radius: 50%;
  background: rgba(84, 98, 120, 0.2);
}

.visual-dialogue span {
  width: 92px;
  height: 48px;
  left: 22px;
  top: 30px;
  border-radius: 18px 18px 18px 4px;
  background: rgba(255, 255, 255, 0.62);
}

.visual-dialogue i {
  width: 86px;
  height: 46px;
  right: 22px;
  bottom: 28px;
  border-radius: 18px 18px 4px 18px;
  background: rgba(84, 98, 120, 0.35);
}

.visual-loop span {
  width: 96px;
  height: 62px;
  left: 28px;
  top: 28px;
  border: 14px solid rgba(84, 98, 120, 0.42);
  border-radius: 999px;
}

.visual-loop i {
  width: 58px;
  height: 58px;
  right: 38px;
  top: 30px;
  border-radius: 50%;
  background: rgba(159, 156, 147, 0.42);
}

.visual-archive span {
  width: 110px;
  height: 70px;
  left: 28px;
  top: 30px;
  border: 2px solid rgba(84, 98, 120, 0.32);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
}

.visual-archive i {
  width: 78px;
  height: 4px;
  left: 44px;
  top: 54px;
  background: var(--taupe);
  box-shadow: 0 15px 0 rgba(84, 98, 120, 0.48), 0 30px 0 rgba(84, 98, 120, 0.26);
}

.sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  padding: 34px 0 70px;
  border-top: 1px solid var(--line);
}

.sidebar h2 {
  margin: 0 0 12px;
  font-size: 0.86rem;
  font-weight: 400;
}

.tag-list,
.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.tag-list li,
.tags span {
  border: 1px solid rgba(64, 90, 120, 0.22);
  border-radius: 3px;
  padding: 3px 7px;
  color: #355d70;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
}

.archive-list li {
  margin: 0 0 8px;
}

.archive-list a {
  color: var(--slate);
  font-size: 0.74rem;
  text-decoration: none;
}

.archive-list a:hover {
  text-decoration: underline;
}

.article {
  padding: 38px 0 82px;
}

.back-link {
  color: var(--slate);
  font-size: 0.76rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.top-back {
  display: inline-block;
  margin: 0 0 28px;
}

.article-head {
  max-width: 560px;
}

.article-head h1 {
  max-width: 560px;
  font-size: 1.9rem;
  line-height: 1.16;
}

.lead {
  max-width: 560px;
  margin: 1em 0;
  color: var(--slate);
  font-size: 0.86rem;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.visual-large {
  float: right;
  display: block;
  width: 45%;
  max-width: 252px;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  margin: 9px 0 12px 18px;
}

.visual-large.visual-image {
  aspect-ratio: 1;
}

.visual-large.visual-image img {
  height: 100%;
}

.article-body {
  max-width: 560px;
  font-size: 0.86rem;
  line-height: 1.6;
}

.article-body::after {
  display: block;
  clear: both;
  content: "";
}

.article-body p {
  margin: 0 0 1.05em;
}

.article-nav {
  max-width: 560px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.article-nav a {
  color: var(--slate);
  text-decoration: none;
}

.article-nav a:hover {
  text-decoration: underline;
}

.about {
  display: block;
}

.about-portrait {
  float: none;
  width: 100%;
  max-width: 260px;
  margin: 18px 0 24px;
}

.about-portrait img {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (max-width: 820px) {
  main,
  .article-page {
    width: min(100% - 36px, 640px);
    max-width: none;
  }

  .site-header-inner {
    width: min(100% - 36px, 640px);
  }

  .hero-image {
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  body {
    background: var(--ivory);
  }

  main,
  .article-page {
    width: min(100% - 28px, 640px);
  }

  .site-header {
    padding: 7px 0 6px;
  }

  .site-header-inner {
    width: min(100% - 28px, 640px);
    gap: 12px;
  }

  .site-brand {
    gap: 0;
  }

  .site-brand img {
    width: 30px;
    height: 30px;
  }

  .site-brand span {
    display: none;
  }

  nav {
    justify-content: space-between;
    gap: 10px;
  }

  nav a {
    font-size: 0.76rem;
  }

  .hero {
    padding: 26px 0 20px;
  }

  .hero-image {
    margin-bottom: 14px;
  }

  .hero-image img {
    aspect-ratio: 1;
  }

  .hero-quote {
    min-height: 0;
    padding-left: 0;
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .hero-quote p {
    margin-bottom: 0;
  }

  .desktop-quote {
    display: none;
  }

  .mobile-quote {
    display: block;
  }

  .history-strip {
    padding: 6px 0 12px;
  }

  .history-scroller {
    gap: 8px;
    padding: 6px 0 12px;
  }

  .history-card {
    flex-basis: 142px;
    min-height: 52px;
    padding: 8px 9px;
  }

  .history-card strong {
    font-size: 0.72rem;
  }

  .history-card span {
    font-size: 0.64rem;
  }

  .post-card {
    padding: 30px 0;
  }

  .post-card a {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .post-card h2,
  .article-head h1 {
    font-size: 1.3rem;
  }

  .post-card .date,
  .article-head .date {
    margin-bottom: 1.1em;
  }

  .post-card p {
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .post-card .teaser {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .top-back {
    margin: -8px 0 38px;
  }

  .post-card .visual {
    float: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1;
    margin: 0;
  }

  .read-more {
    font-size: 0.78rem;
  }

  .visual-large {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 22px;
  }

  .about-portrait {
    float: none;
    width: 100%;
    max-width: 220px;
    min-height: 0;
    margin: 16px 0 22px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .article-nav {
    flex-direction: column;
  }
}
