:root {
  color-scheme: light;
  --night: #0b1218;
  --paper: #f1ede5;
  --ink: #29201b;
  --muted: #62564c;
  --amber: #ffad64;
  --line: #c8bdb0;
  --margin: clamp(20px, 6vw, 96px);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid #d66829; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: min(1240px, calc(100% - 2 * var(--margin)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--night);
  background: var(--paper);
  translate: 0 -150%;
}

.skip-link:focus { translate: 0; }

.site-header {
  color: #f8efe0;
  background: var(--night);
  border-bottom: 1px solid #ffffff26;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
  font: 700 1.24rem Georgia, serif;
}

.moon-mark {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: inset -7px -1px 0 #a84b29;
}

nav { display: flex; align-items: center; gap: clamp(17px, 4vw, 54px); }
nav a { padding-block: 12px; font-size: .9rem; text-decoration: none; }
nav a:hover { color: var(--amber); }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--paper);
}

.hero-image, .hero-image img, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { z-index: -2; }
.hero-image img { object-fit: cover; object-position: 50% 58%; }

.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #060d14df, #060d1466 41%, transparent 67%);
}

.hero-inner {
  min-height: clamp(570px, 47vw, 740px);
  display: flex;
  align-items: center;
  padding-block: 69px 77px;
}

.hero-copy h1 {
  display: grid;
  gap: .02em;
  font: 400 clamp(87px, 10.4vw, 162px)/.80 Georgia, serif;
  letter-spacing: -.084em;
}

.title-period { color: var(--amber); }
.hero-copy p { margin-top: 35px; color: #f5e9d9; font-size: clamp(.96rem, 1.5vw, 1.15rem); line-height: 1.75; }

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-top: 35px;
  padding: 11px 0;
  border-bottom: 1px solid #ffad649c;
  color: var(--amber);
  font-size: .9rem;
  text-decoration: none;
}

.hero-link:hover { border-color: var(--amber); }
.hero-link span { font-size: 1.15rem; line-height: 1; }

.work { padding-block: clamp(56px, 8vw, 110px); }
.work-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 30px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.65rem); letter-spacing: -.055em; line-height: 1.18; }
.work-heading p { color: var(--muted); line-height: 1.8; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #f8f4ec;
}

.card-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(110px, 13vw, 164px);
  overflow: hidden;
  isolation: isolate;
}

.campaign-art { color: #ffd1ac; background: #864731; }
.motion-art { color: #edc87e; background: #3e4e48; }
.tools-art { color: #ffd9b2; background: #2b3b4a; }

.campaign-art span {
  width: 37px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 10px #ffd1ac36, 0 0 0 21px #ffd1ac27, 0 0 0 32px #ffd1ac1f, 0 0 0 46px #ffd1ac16;
}

.campaign-art::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #ffd1ac42;
  rotate: -22deg;
  z-index: -1;
}

.motion-art span {
  width: 61px;
  height: 47px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: -13px 13px #3e4e48, -14px 14px #edc87ea8, 13px -13px #3e4e48, 14px -14px #edc87ea8;
}

.motion-art span::after {
  display: block;
  margin: 11px 0 0 24px;
  border: 11px solid transparent;
  border-left: 15px solid currentColor;
  content: "";
}

.tools-art span {
  width: 66px;
  aspect-ratio: 1;
  border: 2px solid #ffd9b29e;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent 47%, #ffd9b29e 47% 51%, transparent 51%),
              linear-gradient(transparent 47%, #ffd9b29e 47% 51%, transparent 51%);
  box-shadow: 0 0 0 12px #ffd9b215, 0 0 0 25px #ffd9b20a;
}

.tools-art span::after {
  display: block;
  width: 50%;
  height: 50%;
  background: #ffd9b2bc;
  content: "";
}

.card-copy { padding: 22px clamp(16px, 2vw, 28px) 19px; }
.card-copy h3 { margin-bottom: 8px; font-size: clamp(1.19rem, 2vw, 1.49rem); }
.card-copy p { color: var(--muted); font-size: .92rem; line-height: 1.8; }
details { margin-top: 19px; padding-top: 13px; border-top: 1px solid #ded3c6; }
details p { margin-top: 10px; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: .85rem; color: #704027; min-height: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: .45rem; height: .45rem; border-block-end: 1px solid; border-inline-end: 1px solid; rotate: 45deg; margin: 0 4px 4px 0; }
details[open] summary::after { rotate: 225deg; margin-bottom: 0; }

.about {
  padding-block: clamp(50px, 7vw, 95px);
  background: #e4d9c8;
  border-top: 1px solid #cec2b2;
}

.about-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 23px 44px; }
.about-inner h2 { align-self: start; }
.about-inner p { max-width: 36em; color: var(--muted); line-height: 1.95; }
.about-inner .about-lead { margin-bottom: 8px; color: var(--ink); font-size: clamp(1.15rem, 2.1vw, 1.55rem); font-weight: 700; }

.site-footer { color: #f5e9d9; background: var(--night); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 76px; padding-block: 17px; font-size: .82rem; }
.footer-inner a { padding-block: 6px; text-decoration: none; }
.footer-inner a:hover { color: var(--amber); }

@media (max-width: 760px) {
  .hero::after { background: linear-gradient(90deg, #060d14ed, #060d1469 62%, #060d1408); }
  .work-heading { align-items: start; flex-direction: column; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { display: grid; grid-template-columns: 1fr 2fr; }
  .card-art { min-height: 100%; }
  .about-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 64px; }
  .brand { gap: 8px; font-size: 1.08rem; }
  .moon-mark { width: 17px; }
  nav a { font-size: .79rem; }
  .hero-inner { min-height: 620px; align-items: start; padding-block: 50px 230px; }
  .hero-image { top: auto; height: 88%; }
  .hero-image img { object-position: 62% 52%; }
  .hero::after { background: linear-gradient(180deg, #060d14f2, #060d14ab 39%, #060d1426 67%, transparent); }
  .hero-copy h1 { font-size: clamp(76px, 18vw, 108px); }
  .hero-copy p { margin-top: 23px; font-size: .94rem; }
  .hero-link { margin-top: 17px; }
  .card-copy { padding-block: 17px; }
}

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