@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --ink: #1f1726;
  --paper: #f4eee4;
  --paper-2: #ece3d4;
  --paper-3: #e2d8c6;
  --moss: #4c6440;
  --moss-lt: #7f936a;
  --clay: #8b4513;
  --clay-lt: #b47237;
  --plum: #56228b;
  --plum-deep: #211431;
  --line: #cabfad;
  --radius: 18px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Songti SC', serif;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0 0 0.55em;
}

p { margin: 0 0 1.05em; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  background: var(--plum-deep);
  color: #f2e9da;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

.strip {
  margin: 0;
  background: var(--plum-deep);
  color: #e6dac6;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 238, 228, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brandrow {
  padding: 14px 20px 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--plum);
  text-decoration: none;
  line-height: 1.2;
  padding: 4px 0;
  min-height: 40px;
}
.brand .mark { border-radius: 999px; }

.menu { padding: 0 16px 12px; }

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--moss);
  color: #f6f1e6;
  font-size: 16px;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--plum); transform: translateY(-1px); }

.chev {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}
.menu[open] .chev { transform: rotate(180deg); }

.pills {
  list-style: none;
  margin: 0;
  padding: 12px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pills a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.pills a:hover { background: var(--clay); color: #f7f1e5; transform: translateY(-2px); }

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100vh - 130px);
  min-height: calc(100svh - 130px);
  padding: 44px 20px 0;
  overflow: hidden;
  color: #f5efe3;
  background:
    radial-gradient(120% 85% at 88% 6%, rgba(86, 34, 139, 0.92), rgba(86, 34, 139, 0) 62%),
    radial-gradient(95% 75% at 6% 96%, rgba(76, 100, 64, 0.88), rgba(76, 100, 64, 0) 64%),
    linear-gradient(175deg, #1b1127 0%, #2a1a3c 55%, #2b2117 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: -14%;
  top: 26%;
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 62% 38% 55% 45% / 48% 52% 48% 52%;
  background: rgba(180, 114, 55, 0.14);
  pointer-events: none;
}

.hero-txt { position: relative; z-index: 3; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 12vw, 3.6rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.03em;
  max-width: 12ch;
  word-break: break-word;
}

.hero-art {
  position: relative;
  z-index: 2;
  min-height: 250px;
  margin-top: 18px;
}
.hero-art img {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.42);
  background: #2b2136;
}
.hero-a {
  width: 55%;
  aspect-ratio: 3 / 4;
  left: 0;
  bottom: 4%;
  border-radius: 110px 22px 110px 22px;
  transform: rotate(-4deg);
}
.hero-b {
  width: 44%;
  aspect-ratio: 3 / 4;
  right: 0;
  bottom: 20%;
  border-radius: 22px 110px 22px 110px;
  transform: rotate(5deg);
}

main { display: block; }

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.main-col { min-width: 0; padding: 0; }

.article { display: flex; flex-direction: column; gap: 10px; }

.article > article {
  background: var(--paper-2);
  padding: 34px 22px 26px;
  scroll-margin-top: 150px;
}
.article > article:nth-child(even) { background: var(--paper-3); }
.article > article:nth-child(3n) { background: #e9e0d0; }

.article h2 {
  font-size: 1.5rem;
  color: var(--plum);
  max-width: 24ch;
}
.article h3 {
  font-size: 1.16rem;
  color: var(--clay);
  margin-top: 1.6em;
}

.article small {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--clay-lt);
  margin: 0 0 4px;
}

.article p,
.article li { max-width: 68ch; }

.article ul,
.article ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.article li { margin-bottom: 0.4em; }

.article blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--moss-lt);
  color: #40354a;
  font-style: italic;
}

.article strong { color: var(--plum); }

.side {
  padding: 34px 20px 44px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.side small {
  display: block;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--clay-lt);
  margin-bottom: 4px;
}
.side h2 {
  font-size: 1.3rem;
  color: var(--plum);
  margin-bottom: 0.7em;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.side-list a:hover { background: var(--moss); color: #f4eee2; transform: translateX(3px); }

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--clay);
  font-size: 15px;
  text-decoration: none;
}
.totop:hover { background: var(--clay); color: #f7f1e5; }

.foot {
  background: var(--plum-deep);
  color: #ece2d1;
  padding: 40px 20px 30px;
  margin-top: 6px;
}
.foot-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(2.1rem, 12vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f2e8d6;
  word-break: break-word;
}
.foot-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 22px 0 0;
}
.foot-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e5d8c3;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.foot-nav a:hover { background: var(--clay); color: #fbf5e9; }
.foot-copy {
  margin: 24px 0 0;
  font-size: 15px;
  color: #b5a48d;
  letter-spacing: 0.04em;
}

html.js .article > article {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js .article > article.in {
  opacity: 1;
  transform: none;
}

@media (min-width: 760px) {
  .brandrow { padding: 18px 32px 4px; }
  .brand { font-size: 27px; }
  .menu { padding: 0 32px 14px; }
  .hero { padding: 52px 32px 0; }
}

@media (min-width: 900px) {
  body { font-size: 17.5px; }
  .wrap {
    grid-template-columns: minmax(0, 1fr) 282px;
    gap: 40px;
    padding: 54px 32px 60px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 148px);
    min-height: calc(100svh - 148px);
    padding: 64px 48px;
  }
  .hero h1 {
    font-size: clamp(3.2rem, 6.6vw, 5.4rem);
    max-width: 16ch;
  }
  .hero-txt { max-width: 56%; }
  .hero-art {
    position: absolute;
    right: 3.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    max-width: 540px;
    height: 66%;
    margin: 0;
  }
  .hero-a { width: 52%; bottom: 6%; }
  .hero-b { width: 42%; bottom: 24%; }
  .article > article { padding: 44px 40px 34px; }
  .article h2 { font-size: 1.8rem; }
  .side {
    position: sticky;
    top: 152px;
    align-self: start;
    background: var(--paper-2);
    border-top: 0;
    padding: 30px 24px 26px;
  }
  .foot { padding: 56px 32px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .article > article { opacity: 1; transform: none; transition: none; }
  .hero-a, .hero-b { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

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