:root {
  color-scheme: light;
  --paper: #efe3cf;
  --paper-light: #f6ecdd;
  --paper-edge: #e4d5bb;
  --ink: #2b2a26;
  --ink-soft: #57534a;
  --line: #c9b691;
  --dai: #22332a;
  --water: #23606f;
  --cinnabar: #a8443a;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper-edge);
  font-family: var(--sans);
  line-height: 1.7;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 4px;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100%, 1200px);
  min-height: 100vh;
  margin-inline: auto;
  padding-inline: clamp(24px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgb(43 42 38 / 2%) 0 1px, transparent 1px 100%) 0 0 / 8px 100%,
    var(--paper-light);
  border-inline: 1px solid var(--line);
  box-shadow: 0 12px 36px rgb(43 42 38 / 8%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 98px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-seal {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--paper-light);
  background: var(--cinnabar);
  border: 2px solid var(--paper-light);
  outline: 1px solid var(--cinnabar);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.header-note,
.eyebrow,
.project-label {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.12em;
}

main {
  flex: 1;
}

.intro {
  position: relative;
  padding-block: 64px 62px;
}

.intro-rule {
  width: 46px;
  height: 6px;
  margin-bottom: 30px;
  background: var(--cinnabar);
}

.eyebrow {
  margin: 0 0 14px;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
}

h1 {
  margin-bottom: 30px;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.25;
}

.intro-copy {
  max-width: 34em;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.9;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.section-heading span {
  color: var(--cinnabar);
  font-size: 24px;
  line-height: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-block: 24px clamp(82px, 10vw, 124px);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgb(43 42 38 / 18%);
}

.project-card--taisu {
  border-top: 4px solid var(--water);
}

.project-card--ensemble {
  border-top: 4px solid var(--dai);
}

.project-label {
  margin-bottom: 19px;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.project-description {
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 15px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 50px;
  margin-top: auto;
  padding: 5px 0;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, padding-right 180ms ease;
}

.project-link:hover {
  padding-right: 5px;
  color: var(--water);
}

.link-arrow {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  min-height: 98px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.site-footer a {
  color: var(--ink);
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--water);
}

@media (max-width: 700px) {
  .site-header {
    min-height: 78px;
  }

  .header-note {
    display: none;
  }

  .intro {
    padding-block: 64px 70px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 80px;
  }

  .project-card {
    min-height: 250px;
  }
}

@media (max-width: 420px) {
  .page {
    padding-inline: 22px;
  }

  .brand {
    font-size: 16px;
  }

  h1 {
    font-size: 41px;
    letter-spacing: 0.045em;
  }

  .project-card {
    padding: 26px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .project-link {
    transition: none;
  }
}
