:root {
  color-scheme: light;
  --ink: #171411;
  --muted: #6b635a;
  --paper: #f7f2ea;
  --paper-deep: #ece1d2;
  --line: #d5c8b7;
  --red: #b63f2f;
  --teal: #0f6b62;
  --blue: #245f91;
  --gold: #c49036;
  --shadow: 0 26px 80px rgba(41, 30, 18, 0.16);
  --display: "Space Grotesk", "IBM Plex Sans TC", sans-serif;
  --body: "IBM Plex Sans TC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(23, 20, 17, 0.1);
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(23, 20, 17, 0.08);
}

.brand-mark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
}

.mark-grid {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 48%, rgba(23, 20, 17, 0.15) 49%, transparent 51%),
    linear-gradient(0deg, transparent 48%, rgba(23, 20, 17, 0.15) 49%, transparent 51%);
  font-size: 16px;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.site-nav a,
.header-action {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.header-action {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  font-family: var(--display);
  font-weight: 700;
}

.header-action:hover,
.button.primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.section-band {
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 7vw, 104px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 7.2em;
  margin-bottom: 26px;
  font-size: clamp(76px, 12vw, 184px);
}

h2 {
  font-size: clamp(34px, 5vw, 72px);
}

h3 {
  font-size: 25px;
}

.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
}

.hero-actions,
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 12px 20px;
  font-family: var(--display);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--red);
  color: #fffaf4;
  border-color: var(--red);
}

.button.ghost {
  background: transparent;
}

.type-poster {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 20, 17, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 20, 17, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f9f1e2 0%, #e0d7c4 52%, #f6ead9 100%);
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow: var(--shadow);
}

.poster-row,
.poster-footer {
  position: absolute;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  color: rgba(23, 20, 17, 0.72);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.poster-row {
  top: 20px;
}

.poster-footer {
  bottom: 22px;
}

.poster-stage {
  position: absolute;
  inset: 72px 28px;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: center;
}

.poster-letter {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(156px, 23vw, 340px);
  font-weight: 700;
  line-height: 0.8;
}

.poster-letter.alt {
  color: var(--blue);
  font-family: var(--body);
  font-size: clamp(132px, 18vw, 260px);
  writing-mode: vertical-rl;
}

.section {
  padding: clamp(58px, 8vw, 126px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.intro p:last-child,
.contact-card p {
  color: var(--muted);
  font-size: 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-item {
  display: grid;
  min-height: 460px;
  align-content: space-between;
  border: 1px solid var(--line);
  background: #fbf6ee;
  padding: 18px;
}

.work-sample {
  display: grid;
  min-height: 260px;
  place-items: center;
  margin-bottom: 28px;
  color: #fffaf4;
  font-family: var(--display);
  font-size: clamp(90px, 12vw, 178px);
  line-height: 1;
}

.work-sample.sharp {
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.work-sample.mono {
  background: var(--teal);
  font-family: "Courier New", monospace;
}

.work-sample.brush {
  background: var(--blue);
  font-family: var(--body);
  font-weight: 700;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.work-item p,
.service-list p {
  color: var(--muted);
}

.services {
  background: var(--ink);
  color: var(--paper);
}

.services .eyebrow,
.services .tag {
  color: #f1b75d;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(247, 242, 234, 0.25);
  border: 1px solid rgba(247, 242, 234, 0.25);
}

.service-list article {
  min-height: 320px;
  padding: 28px;
  background: var(--ink);
}

.service-list span {
  display: inline-block;
  margin-bottom: 72px;
  color: #f1b75d;
  font-family: var(--display);
  font-weight: 700;
}

.service-list p {
  color: rgba(247, 242, 234, 0.72);
}

.specimen {
  background: var(--paper-deep);
}

.specimen-panel {
  border: 1px solid var(--ink);
  background: #fffaf4;
  padding: clamp(20px, 4vw, 48px);
}

.specimen-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.specimen-controls label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 16px;
  color: var(--ink);
  font: 500 18px/1.5 var(--body);
}

.specimen-output {
  min-height: 1.15em;
  margin: 32px 0 0;
  font-family: var(--display);
  font-size: 86px;
  font-weight: 700;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.contact-card {
  align-content: start;
  border-left: 3px solid var(--red);
  padding-left: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    overflow-x: auto;
    max-width: 100%;
  }

  .header-action {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .hero,
  .intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .type-poster {
    min-height: 520px;
  }

  .work-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .work-item {
    min-height: auto;
  }

  .service-list article {
    min-height: auto;
  }

  .service-list span {
    margin-bottom: 34px;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 14px;
    padding: 12px 14px;
  }

  .brand-mark span:last-child {
    display: none;
  }

  .header-action {
    padding: 8px 13px;
  }

  .section-band,
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: clamp(58px, 20vw, 96px);
  }

  h2 {
    font-size: clamp(30px, 11vw, 48px);
  }

  .type-poster {
    min-height: 420px;
  }

  .poster-stage {
    grid-template-columns: 1fr;
    inset: 60px 20px;
  }

  .poster-letter.alt {
    justify-self: end;
    margin-top: -44px;
    font-size: clamp(94px, 34vw, 148px);
  }

  .section-heading,
  .site-footer,
  .specimen-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .specimen-output {
    font-size: 54px;
  }
}
