:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #173e35;
  background: #f8f3e7;
  --ink: #173e35;
  --muted: #496359;
  --paper: #f8f3e7;
  --line: #d8d4c4;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #a54e1b; outline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }

.shell { width: min(100% - 64px, 1140px); margin-inline: auto; }
.skip { position: absolute; inset: 12px auto auto 12px; padding: 10px 16px; background: var(--paper); z-index: 2; transform: translateY(-160%); }
.skip:focus { transform: none; }
.loading, .policy { padding: 48px 0; }
.policy { max-width: 680px; font-size: 1rem; line-height: 1.65; }
.policy h1 { margin-top: 24px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.13;
  letter-spacing: 0.045em;
  white-space: nowrap;
}
.brand img { border-radius: 8px; }
.brand strong { font: bold 1.03rem/1.05 var(--serif); letter-spacing: -0.015em; }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 34px); }
nav a { padding: 12px 2px; color: var(--muted); text-decoration: none; font-size: 0.88rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
nav a[aria-current="page"] { font-weight: 650; }

h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.65rem, 6.2vw, 5.5rem); line-height: 0.99; letter-spacing: -0.058em; }
h1:focus { outline: none; }
h2 { font-size: clamp(1.45rem, 3.8vw, 2.25rem); letter-spacing: -0.04em; line-height: 1.02; }

.work { padding-top: clamp(24px, 5vw, 66px); }
.feature-intro { display: grid; align-content: start; gap: 18px; padding: 14px 0 0; }
.feature-date {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #85401a;
  font-size: 0.76rem;
  font-weight: 730;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.edition { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-top: -9px; }
.invitation, .archive-intro p { color: var(--muted); font-size: clamp(0.96rem, 1.45vw, 1.08rem); line-height: 1.6; max-width: 41ch; }
.quiet, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: fit-content;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 630;
  text-decoration: none;
}
.quiet { color: var(--ink); background: transparent; }
.quiet:hover { border-color: var(--muted); background: #f0e8d5; }
.primary { color: #fffbee; border-color: var(--ink); background: var(--ink); }
.primary:hover { color: #fffbee; background: #275549; }
.theater {
  min-width: 0;
  margin-top: 24px;
  padding: clamp(4px, 1vw, 11px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--work-color, #e8dcc9);
  box-shadow: 0 10px 35px #3b322918;
}
iframe { width: 100%; display: block; border: 0; border-radius: 11px; background: var(--work-color, #efe7d7); }
.make {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}
.make h2 { margin-bottom: 6px; }
.make p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.make-card { min-width: 0; padding: 16px; border-radius: 10px; background: #f0ebda; }
.make-card #starter-prompt { font: 1.08rem/1.4 var(--serif); color: var(--ink); }
.make-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.copy-state:not(:empty) { margin-top: 10px; }

.archive-intro { padding: clamp(30px, 6vw, 72px) 0 38px; }
.archive-intro p { margin-top: 14px; }
.recent { margin-bottom: 42px; }
.recent-list { margin-top: 14px; border-top: 1px solid var(--line); }
.recent-list a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.recent-list a:hover { text-decoration: underline; }
.recent-list time { font-size: 0.85rem; color: var(--muted); }
.recent-list strong { font: 1.05rem/1.24 var(--serif); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 17px; }
.archive-card { display: block; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fffaf0; }
.archive-card:hover { border-color: var(--muted); }
.archive-card img { width: 100%; height: auto; aspect-ratio: 16/9; display: block; object-fit: cover; background: var(--work-color); }
.archive-caption { position: relative; display: grid; gap: 4px; padding: 12px 32px 13px 12px; }
.archive-caption strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.kind { color: var(--muted); font-size: 0.76rem; }
.arrow { position: absolute; right: 12px; bottom: 12px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0 24px; margin-top: 46px; border-top: 1px solid var(--line); }
.foot, .foot a { color: var(--muted); font-size: 0.78rem; }
.foot > div { display: flex; flex-wrap: wrap; gap: 15px; }

@media (min-width: 950px) {
  .work { display: grid; grid-template-columns: minmax(235px, 0.85fr) minmax(0, 1.95fr); gap: 0 38px; }
  .work h1 { font-size: clamp(3rem, 5.4vw, 4.85rem); }
  .theater { margin-top: 0; min-width: 0; }
  .make { grid-column: 1 / -1; grid-template-columns: minmax(235px, 0.85fr) minmax(0, 1.95fr); gap: 38px; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 24px); }
  .top { min-height: 58px; }
  .feature-intro { gap: 12px; padding-top: 0; }
  .edition { margin-top: -5px; }
  .theater { margin-top: 17px; padding: 2px; border-radius: 11px; }
  .archive-caption strong { font-size: 1rem; }
}
