
:root {
  --bg: #ffffff;
  --text: #222222;
  --subtle: #777777;
  --line: #dedede;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 50px;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 0 60px;
}

.intro {
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.8;
  letter-spacing: -0.025em;
}

.intro-line {
  margin: 0;
}

/* Clickable words */
.keyword {
  appearance: none;
  border: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.keyword:hover {
  opacity: 0.45;
}

.keyword:focus-visible,
.close-button:focus-visible {
  outline: 2px solid #777;
  outline-offset: 5px;
}

/* Expandable sections */
.expandable {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 650ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 400ms ease;
}

.expandable.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.expandable-inner {
  min-height: 0;
  overflow: hidden;
}

.expandable-content {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 35px 0;
  padding: 35px 0 25px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 35px;
}

.content-body {
  max-width: 760px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
  letter-spacing: -0.01em;
}

.content-body p {
  margin: 0 0 24px;
}

.content-body p:last-child {
  margin-bottom: 0;
}

/* Circular collapse button */
.close-area {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.close-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.close-button:hover {
  background: var(--text);
  color: white;
  transform: translateY(-3px);
}

.close-button svg {
  width: 18px;
  height: 18px;
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 80px 24px;
  }

  h1 {
    margin-bottom: 45px;
  }

  .expandable-content {
    margin: 25px 0;
    padding-top: 28px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .expandable,
  .keyword,
  .close-button {
    transition: none;
  }
}
