@font-face {
  font-family: "Index Display"; src: url("../06-wren-ashby/fonts/crimson-pro.ttf") format("truetype"); font-display: swap; font-style: normal; font-weight: 200 900;
}
@font-face {
  font-family: "Index Display"; src: url("../06-wren-ashby/fonts/crimson-pro-italic.ttf") format("truetype"); font-display: swap; font-style: italic; font-weight: 200 900;
}
@font-face {
  font-family: "Index Sans"; src: url("../06-wren-ashby/fonts/dm-sans.ttf") format("truetype"); font-display: swap; font-weight: 100 1000;
}
:root {
  --paper: #f1f3ec;
  --page: #f9faf5;
  --ink: #1b2d25;
  --muted: #526259;
  --deep: #233a30;
  --olive: #365549;
  --acid: #e4eda8;
  --rule: #ccd3c7;
  --display: "Index Display", "Iowan Old Style", Georgia, serif;
  --sans: "Index Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4.1vw, 78px);
  --ease: cubic-bezier(.18,.7,.24,1);
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.62 var(--sans);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #315d48; outline-offset: 4px; }
::selection { background: var(--acid); color: var(--ink); }
.wrap { width: min(100% - 2 * var(--gutter), 1490px); margin-inline: auto; }
.stamp { font: 500 10.5px/1.3 var(--mono); letter-spacing: .105em; }
.skip { position: fixed; z-index: 5; inset: 9px auto auto var(--gutter); padding: 10px; background: var(--acid); }
.skip:not(:focus) { clip-path: inset(50%); }
section[id], footer[id], article[id] { scroll-margin-top: 18px; }

.masthead { border-bottom: 1px solid var(--rule); }
.mast-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.identity { display: inline-flex; width: fit-content; align-items: center; gap: 11px; }
.identity svg { flex: none; }
.identity-name { font: 750 clamp(13px, 1.15vw, 17px)/1 var(--sans); letter-spacing: -.02em; }
.head-caption { color: var(--muted); }
.mast-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(15px, 2.25vw, 36px); }
.mast-nav a { font-size: 13px; font-weight: 600; white-space: nowrap; }
.mast-nav a span { margin-left: 2px; color: var(--muted); font: 500 9px/1 var(--mono); vertical-align: super; }
.mast-nav a:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  padding-top: clamp(49px, 5.6vw, 93px);
  display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.2fr);
  margin-bottom: clamp(58px, 5.5vw, 94px);
  column-gap: clamp(28px, 5vw, 86px); align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.eyebrow > span { display: block; flex: 0 0 7px; width: 7px; height: 7px; background: var(--olive); }
.eyebrow b { padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--rule); font-weight: inherit; }
.hero h1 {
  font-family: var(--display); font-size: clamp(69px, 8.55vw, 151px); font-weight: 400;
  letter-spacing: -.058em; line-height: .78; margin: clamp(26px, 3.13vw, 51px) 0 clamp(24px, 3.1vw, 47px);
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-weight: 400; padding-left: .06em; color: var(--olive); margin-top: .12em; }
.hero-subtitle { font-size: clamp(18px, 1.7vw, 25px); font-weight: 730; letter-spacing: -.045em; }
.hero-copy { margin-top: 10px; color: var(--muted); font-size: clamp(14px, 1.13vw, 17px); line-height: 1.78; letter-spacing: -.02em; }
.primary-link {
  min-height: 49px; margin-top: clamp(22px, 2.65vw, 43px); display: inline-flex; align-items: center; gap: 30px;
  background: var(--ink); color: #fbfcf7; padding: 11px 15px 11px 18px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.primary-link svg { transition: transform .25s var(--ease); }
.primary-link:is(:hover,:focus-visible) svg { transform: translateY(3px); }

.stage {
  min-width: 0; background: var(--page); border: 1px solid var(--rule);
  box-shadow: 0 13px 32px -28px #192e24aa;
}
.stage-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-height: 38px; padding: 8px clamp(10px, 1.4vw, 19px); color: var(--muted); }
.stage-top strong { color: var(--ink); }
.stage-signal { display: flex; align-items: center; gap: 8px; }
.stage-signal::before { content: ""; width: 6px; height: 6px; background: var(--olive); border-radius: 50%; }
.stage-media { position: relative; overflow: clip; aspect-ratio: 1240 / 804; background: #e1e3d9; border-block: 1px solid var(--rule); }
.stage-media img, .work-image img, .rail-photo img { width: 100%; height: 100%; object-fit: cover; }
.stage-caption { min-height: 66px; padding: 9px clamp(10px, 1.4vw, 19px); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.featured-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; min-width: 0; }
#featured-kind { color: var(--muted); font-size: 9.5px; }
#featured-name { font: 400 clamp(22px, 2.35vw, 39px)/.95 var(--display); }
.demo-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: #aeb9ae; text-underline-offset: 5px; }
.demo-link span { display: inline-block; transition: transform .22s var(--ease); }
.demo-link:is(:hover,:focus-visible) { text-decoration-color: currentColor; }
.demo-link:is(:hover,:focus-visible) span { transform: translate(2px,-2px); }

.rail { grid-column: 1 / -1; margin-top: clamp(32px, 4.05vw, 68px); min-width: 0; }
.rail-heading { color: var(--muted); display: flex; justify-content: space-between; padding-bottom: 9px; }
.rail-heading span { color: var(--ink); }
.rail-list {
  display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.rail-list li { min-width: 0; }
.rail-choice {
  padding: 9px; min-height: 63px; border: 0; background: var(--paper); cursor: pointer;
  text-align: left; width: 100%; height: 100%; display: flex; align-items: center; gap: 8px;
  transition: background .22s var(--ease);
}
.rail-choice:is(:hover,:focus-visible) { background: #e6eadd; }
.rail-choice[aria-pressed="true"] { background: var(--acid); }
.rail-choice:focus-visible { outline-offset: -3px; }
.rail-photo { width: clamp(30px, 3.4vw, 59px); flex: none; aspect-ratio: 1240 / 804; overflow: hidden; background: #dce0d5; border: 1px solid #67756833; }
.rail-label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; line-height: 1.08; font-weight: 700; }
.rail-no { color: var(--muted); font-size: 9px; }

.collection { padding-bottom: clamp(62px, 8vw, 120px); }
.collection-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 25px;
  padding-block: 19px 27px; border-top: 1px solid var(--ink);
}
.collection-head h2, .footer h2 {
  font-size: clamp(30px, 3.8vw, 56px); line-height: 1.1; font-weight: 730; letter-spacing: -.065em; margin-top: 13px;
}
.collection-head > p { color: var(--muted); font-size: 14px; line-height: 1.65; padding-bottom: 3px; letter-spacing: -.018em; }
.work-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px, 1.85vw, 31px); }
.work { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--rule); background: var(--page); }
.work-image { display: block; position: relative; overflow: clip; aspect-ratio: 1240 / 804; border-bottom: 1px solid var(--rule); background: #e1e3d9; }
.work-image:focus-visible { outline-offset: -4px; }
.work-image img { transition: transform .45s var(--ease); }
.work-image:is(:hover,:focus-visible) img { transform: scale(1.035); }
.image-arrow {
  position: absolute; bottom: 9px; right: 9px; width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--page); border: 1px solid var(--rule); color: var(--ink); font-size: 16px; line-height: 1;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.work-image:is(:hover,:focus-visible) .image-arrow { background: var(--ink); color: white; }
.work-body { display: flex; flex-direction: column; flex: 1; padding: clamp(17px, 1.65vw, 27px); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--muted); }
.work-tag { font-size: 11px; font-weight: 680; letter-spacing: -.015em; }
.work-title {
  font: 400 clamp(28px, 3.1vw, 48px)/.99 var(--display); letter-spacing: -.028em; margin: 15px 0 13px;
}
.work-headline { font-size: 15px; font-weight: 730; letter-spacing: -.04em; }
.work-description { margin-top: 7px; font-size: 14px; line-height: 1.72; letter-spacing: -.023em; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.work-bottom {
  border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 6px 11px; padding-top: 12px; margin-top: auto; 
}
.work-description { padding-bottom: 22px; }
.work-tip { font-size: 11.5px; font-weight: 560; color: var(--muted); }
.work--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.48fr) minmax(0,1fr); }
.work--wide .work-image { border: 0; border-right: 1px solid var(--rule); }
.work--wide .work-body { padding: clamp(22px, 3.9vw, 62px); }
.work--wide .work-title { font-size: clamp(35px,5.2vw,79px); line-height: .96; margin-block: clamp(20px, 2.45vw, 40px) 18px; }
.work--wide .work-description { max-width: 31em; }

.footer { background: var(--deep); color: #f1f3eb; }
.footer-inner { padding-top: clamp(39px,5vw,76px); display: grid; grid-template-columns: .8fr 1.25fr auto; align-items: end; gap: 27px clamp(22px, 5vw, 80px); }
.footer h2 { font-size: clamp(30px,3.3vw,47px); }
.footer .eyebrow, .footer-inner > p, .footer-rule { color: #c1cec2; }
.footer .eyebrow span { background: var(--acid); }
.footer-inner > p { font-size: 14px; line-height: 1.8; word-break: keep-all; max-width: 43em; }
.back-top { color: var(--acid); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; font-weight: 700; }
.back-top:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 5px; }
.footer :focus-visible { outline-color: var(--acid); }
.footer-rule { display: flex; justify-content: space-between; border-top: 1px solid #5e7465; grid-column: 1 / -1; padding: 17px 0 25px; }

@media (max-width: 1100px) {
  .rail-photo { display: none; }
  .rail-choice { min-height: 52px; }
  .work-description { word-break: normal; }
}
@media (max-width: 930px) {
  .hero { grid-template-columns: minmax(0, .88fr) minmax(0,1fr); column-gap: 27px; }
  .hero h1 { font-size: clamp(62px, 8.8vw, 95px); }
  .wide-break { display: none; }
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work--wide .work-body { padding: 20px; }
}
@media (max-width: 690px) {
  .mast-inner { grid-template-columns: 1fr auto; min-height: 64px; gap: 8px; }
  .head-caption { display: none; }
  .identity svg { width: 27px; height: 27px; }
  .identity { gap: 7px; }
  .mast-nav { gap: 11px; }
  .mast-nav a { font-size: 12px; }
  .mast-nav a span { display: none; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 38px; margin-bottom: 61px; }
  .hero h1 { font-size: clamp(70px, 12.1vw, 98px); margin: 27px 0 23px; }
  .hero-copy { margin-top: 8px; }
  .primary-link { min-height: 43px; margin-top: 21px; }
  .stage { margin-top: 27px; }
  .stage-top { min-height: 31px; font-size: 9px; }
  .stage-caption { min-height: 51px; }
  .stage-link { font-size: 12px; }
  .rail { margin-top: 23px; }
  .rail-heading { font-size: 9px; }
  .rail-list {
    grid-template-columns: repeat(7, minmax(107px,1fr)); overflow-x: auto; scrollbar-width: thin;
    scrollbar-color: #87998a var(--paper); overscroll-behavior-x: contain;
  }
  .rail-choice { min-height: 44px; }
  .collection-head { align-items: flex-start; flex-direction: column; gap: 12px; padding: 17px 0 18px; }
  .collection-head h2 { margin-top: 10px; }
  .collection-head > p { padding-bottom: 0; font-size: 13px; }
  .collection-head > p br { display: none; }
  .work--wide { display: flex; }
  .work--wide .work-title { margin-block: 15px 13px; }
  .work--wide .work-image { border: 0; border-bottom: 1px solid var(--rule); }
  .footer-inner { grid-template-columns: 1fr auto; row-gap: 16px; }
  .footer-inner > p { grid-row: 2; grid-column: 1 / -1; }
  .back-top { grid-row: 1; grid-column: 2; }
}
@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(62px,16.9vw,82px); }
  .work-title { font-size: clamp(34px, 9vw, 44px); }
  .work--wide .work-title { font-size: clamp(37px,10vw,52px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
