@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --paper: #ffffff;
  --smoke: #f5f5f5;
  --ink: #1f1f1f;
  --ink-soft: rgba(31, 31, 31, 0.6);
  --line: rgba(31, 31, 31, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 14px 30px rgba(0, 0, 0, 0.09);
  --r: 28px;
  --r-sm: 16px;
  --serif: 'Cormorant Garamond', 'Crimson Pro', Georgia, 'Songti SC', 'Noto Serif CJK SC', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--smoke);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 14px; }

.shell { min-height: 100vh; }

/* ---------- rail ---------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--smoke);
  overflow: hidden;
  text-decoration: none;
}

.mark img { width: 44px; height: 44px; object-fit: cover; }

.mark-glyph {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.rail-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rail-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--smoke);
  font-size: 15px;
  letter-spacing: 0.14em;
  cursor: pointer;
  user-select: none;
}

.rail-contact {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.rail-nav {
  grid-column: 1 / -1;
  display: none;
  padding: 6px 0 4px;
}

.rail-toggle:checked ~ .rail-nav { display: block; }

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 12px 10px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rail-nav a:hover { background: var(--smoke); transform: translateX(2px); }

.num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: 12px;
  padding: 22px 18px 6px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 8.5vw, 46px);
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin: 0 0 10px;
}

.lede {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 42ch;
}

.tile {
  margin: 0;
  min-height: 190px;
  border-radius: var(--r);
  background: linear-gradient(150deg, #ffffff, #ececec);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 0.7, 0.3, 1), box-shadow 0.35s ease;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
}

.tile:hover { transform: scale(1.015); box-shadow: var(--shadow-lift); }

/* ---------- side ---------- */

.side {
  margin: 18px;
  padding: 22px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

.side:hover { box-shadow: var(--shadow-lift); }

main small,
.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.side-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.side-list a:hover { color: var(--ink); padding-left: 4px; }
.side-list li:last-child a { border-bottom: 0; }

.to-top {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--smoke);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

/* ---------- content sections ---------- */

.main { display: block; }

main > article[id] {
  margin: 16px 18px;
  padding: 26px 20px 12px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  scroll-margin-top: 76px;
  transition: box-shadow 0.3s ease;
}

main > article[id]:hover { box-shadow: var(--shadow-lift); }

main > article[id] h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 5.6vw, 36px);
  line-height: 1.2;
  margin: 0 0 12px;
}

main > article[id] h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin: 26px 0 10px;
}

main > article[id] p { max-width: 68ch; }

main > article[id] ul,
main > article[id] ol { padding-left: 22px; margin: 0 0 16px; }
main > article[id] li { margin: 0 0 8px; }

main > article[id] figure {
  margin: 20px 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--smoke);
}

main > article[id] blockquote {
  margin: 20px 0;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--ink);
  color: var(--ink-soft);
}

main > article[id] a { text-underline-offset: 3px; }

/* ---------- footer ---------- */

.foot {
  margin: 44px 0 0;
  padding: 30px 18px 26px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.foot dl { margin: 0; }

.foot dt {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.foot dd { margin: 0; font-size: 16px; }

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.foot dd a:hover { border-bottom-color: var(--ink); }

.muted { color: var(--ink-soft); word-break: break-all; }

.bigmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 15vw, 142px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 6px 0 0;
  color: var(--ink);
}

.copy {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 26% 32% minmax(0, 1fr);
    align-items: stretch;
    min-height: 45vh;
    gap: 16px;
    padding: 34px 32px 12px;
  }

  .hero-copy {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    text-align: right;
    padding-bottom: 10px;
  }

  .lede { margin-left: auto; }

  .tile-a { grid-column: 1; grid-row: 1; }
  .tile-b { grid-column: 2; grid-row: 1; margin-top: 46px; }

  .foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 40px 32px 28px;
    gap: 28px;
  }

  .bigmark { grid-column: 1 / -1; }
  .copy { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 30px 22px;
    background: var(--paper);
    backdrop-filter: none;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }

  .rail-btn { display: none; }
  .rail-nav { display: block; width: 100%; padding: 0; }
  .rail-contact { margin-top: auto; }
  .mark { width: 48px; height: 48px; }

  .stage { margin-left: 248px; }

  .main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 0 30px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px 10px;
  }

  .main > article { grid-column: 1; }

  .main > aside.side {
    grid-column: 2;
    grid-row: 1 / span 30;
    position: sticky;
    top: 30px;
    margin: 34px 0 0;
  }

  .hero { padding-left: 0; padding-right: 0; }
  main > article[id] { margin: 20px 0; padding: 34px 30px 16px; }
  .foot { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .tile:hover { transform: none; }
  .rail-nav a:hover { transform: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

button[aria-expanded]{min-width:44px;min-height:44px}
