:root {
  --brown: #2b1a17;
  --coral: #f2a083;
  --white: #fffdfb;
  --background: #faf7f4;
  --surface: #ffffff;
  --surface-soft: #f5efeb;
  --text: #2b1a17;
  --muted: #76645e;
  --line: #ddd1cb;
  --line-strong: #2b1a17;
  --accent-dark: #a54d39;
  --sans: "Avenir Next", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --max-site: 72rem;
  --max-article: 54rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.22em;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 0.2rem solid var(--accent-dark);
  outline-offset: 0.22rem;
}

::selection {
  color: var(--brown);
  background: var(--coral);
}

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

h1,
h2,
h3 {
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  color: var(--brown);
  background: var(--coral);
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgb(255 253 251 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  width: min(calc(100% - (2 * var(--gutter))), var(--max-site));
  min-height: 5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-identity {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.site-identity__logo {
  width: 3.6rem;
  height: 3.6rem;
  flex: none;
  object-fit: cover;
}

.site-identity__wordmark {
  display: grid;
  line-height: 1.25;
}

.site-identity__wordmark strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.site-identity__wordmark span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-header__nav a {
  font-size: 0.84rem;
  font-weight: 700;
}

.site-header__nav a[aria-current="page"] {
  text-decoration-color: var(--accent-dark);
}

/* Shared layout */

.text-link {
  width: fit-content;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

/* Landing */

.landing-page {
  background: var(--surface);
}

.landing-main {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-site));
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4.5rem, 9vw, 8rem);
}

.landing-header {
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.landing-header p {
  margin-bottom: 0.35rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-header h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.story-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.story-card__link {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  text-decoration: none;
}

.story-card__link:hover h2,
.story-card__link:focus-visible h2 {
  color: var(--accent-dark);
}

.story-card__body {
  display: flex;
  padding: 1.25rem;
  flex-direction: column;
}

.story-card__meta {
  display: flex;
  margin-bottom: 0.7rem;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.story-card__participant {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.story-card h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.55;
  transition: color 150ms ease;
}

.story-card__excerpt {
  display: -webkit-box;
  margin-bottom: 1rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.story-card--minimal .story-card__excerpt {
  margin-bottom: 0;
}

.story-card .text-link {
  margin-top: auto;
  padding-top: 1rem;
}

/* Archive */

.archive-page {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-site));
  margin-inline: auto;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.archive-header {
  max-width: var(--max-article);
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.archive-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.25;
}

.archive-header p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
}

.archive-count {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-grid--archive {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Breadcrumbs */

.breadcrumbs {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-site));
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.archive-page > .breadcrumbs,
.article-page > .breadcrumbs {
  width: 100%;
}

.breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 0.45rem;
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

/* Article */

.article-page {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-article));
  margin-inline: auto;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.article-header {
  padding: clamp(2.5rem, 5.5vw, 4.5rem) 0 2.25rem;
}

.article-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 3rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.32;
}

.story-visual {
  margin: 0;
}

.story-visual__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.story-visual--hero {
  margin-bottom: 2.5rem;
}

.story-visual--hero .story-visual__image {
  border: 1px solid var(--line);
}

.story-visual figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.story-visual--compact {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.article-lead {
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-lead p {
  max-width: 48rem;
  margin-bottom: 1rem;
  color: #4f403b;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 2;
}

.article-lead p:last-child {
  margin-bottom: 0;
}

.article-lead p:first-child {
  color: var(--text);
  font-weight: 650;
}

.before-after {
  margin: 0 0 clamp(3.5rem, 7vw, 5.5rem);
}

.before-after__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.change-panel {
  padding: clamp(1.2rem, 3vw, 1.65rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brown);
}

.change-panel--after {
  border-top-color: var(--coral);
  background: #fff7f3;
}

.change-panel h3 {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.18rem 0.55rem;
  color: var(--white);
  background: var(--brown);
  font-size: 0.82rem;
  line-height: 1.4;
}

.change-panel--after h3 {
  color: var(--brown);
  background: var(--coral);
}

.change-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.change-panel li {
  color: #51413d;
  font-size: 0.9rem;
  line-height: 1.75;
}

.change-panel li + li {
  margin-top: 0.55rem;
}

.before-after__arrow {
  display: grid;
  min-width: 0;
  place-items: center;
}

.before-after__arrow::before {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--brown);
  background: var(--coral);
  border-radius: 50%;
  content: "→";
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.article-toc {
  margin: 0 0 clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(1.35rem, 4vw, 2rem);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brown);
}

.article-toc__eyebrow {
  margin-bottom: 0.2rem;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.article-toc h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.35;
}

.article-toc ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc li + li {
  border-top: 1px solid var(--line);
}

.article-toc a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding: 0.72rem 0;
  align-items: center;
  gap: 0.7rem;
  color: #4f403b;
  font-size: clamp(0.88rem, 1.8vw, 0.96rem);
  font-weight: 650;
  line-height: 1.55;
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: var(--accent-dark);
}

.article-toc a span {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  color: var(--brown);
  background: var(--white);
  border: 1px solid var(--coral);
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
}

.article-toc a:hover span,
.article-toc a:focus-visible span {
  background: var(--coral);
}

/* CBT Gym reference: simple stacked profile rows, reinterpreted for ACT */

.profile-section {
  margin: 0 0 clamp(4rem, 8vw, 6rem);
}

.profile-section__heading {
  margin-bottom: 1.2rem;
}

.profile-section__heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.45;
}

.profile-list {
  display: grid;
  gap: 0.9rem;
}

.profile-card {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  padding: 1.25rem;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.profile-card__image {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 50%;
}

.profile-card__body {
  min-width: 0;
}

.profile-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.12rem;
  line-height: 1.5;
}

.profile-card h3 span {
  font-weight: 650;
}

.profile-card__details {
  display: grid;
  gap: 0.28rem;
}

.profile-card__details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.article-body {
  margin-top: clamp(0.5rem, 2vw, 1rem);
}

.story-section {
  padding: clamp(3.75rem, 7vw, 5.25rem) 0 0;
}

.story-section__header {
  margin-bottom: 1.7rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.story-section__header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 760;
  letter-spacing: -0.018em;
  line-height: 1.4;
}

.interview-block + .interview-block {
  margin-top: 2.5rem;
}

.interview-block h3 {
  margin-bottom: 1.1rem;
  color: var(--accent-dark);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 720;
  line-height: 1.6;
}

.interview-answer p {
  margin-bottom: 1rem;
  color: #443733;
  font-size: clamp(1rem, 1.8vw, 1.06rem);
  line-height: 2;
}

.interview-answer p:last-child {
  margin-bottom: 0;
}

.article-cta {
  display: grid;
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  gap: 1rem;
  background: var(--brown);
  border: 1px solid var(--brown);
}

.article-cta p {
  margin: 0;
  color: #fff5f0;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.65;
}

.article-cta a {
  display: inline-flex;
  width: fit-content;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--brown);
  background: var(--coral);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.article-cta a:hover,
.article-cta a:focus-visible {
  color: var(--brown);
  background: #ffd1c0;
}

.tag-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.tag-list li {
  padding: 0.22rem 0.55rem;
  color: #5d4b45;
  background: var(--surface-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

.tag-list--card {
  margin-bottom: 0.4rem;
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(3.5rem, 7vw, 5rem) 0 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.article-pager a {
  display: grid;
  min-width: 0;
  padding: 1.25rem 1rem;
  gap: 0.35rem;
  text-decoration: none;
}

.article-pager a + a {
  border-left: 1px solid var(--line);
  text-align: right;
}

.article-pager span {
  color: var(--muted);
  font-size: 0.72rem;
}

.article-pager strong {
  font-size: 0.85rem;
  line-height: 1.6;
}

.article-pager a:hover strong,
.article-pager a:focus-visible strong {
  color: var(--accent-dark);
}

.related-section {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.related-section > p {
  margin-bottom: 0.2rem;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-section > h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.4;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.related-card {
  display: grid;
  min-width: 0;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
}

.related-card .story-visual {
  border-bottom: 1px solid var(--line);
}

.related-card .story-visual__image {
  background: var(--surface-soft);
}

.related-card > span,
.related-card > strong {
  padding-inline: 1rem;
}

.related-card > span {
  padding-top: 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.related-card > strong {
  padding-top: 0.35rem;
  padding-bottom: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.related-card:hover strong,
.related-card:focus-visible strong {
  color: var(--accent-dark);
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 2.2rem var(--gutter);
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.9rem;
}

.site-footer__brand img {
  width: 3.2rem;
  height: 3.2rem;
  flex: none;
  object-fit: cover;
}

.site-footer__brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

.site-footer__brand .site-footer__title {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 750;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 64rem) {
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  :root {
    --gutter: 1.25rem;
  }

  .site-header__inner {
    min-height: 4.4rem;
  }

  .site-identity__logo {
    width: 3rem;
    height: 3rem;
  }

  .story-grid,
  .before-after__grid {
    grid-template-columns: 1fr;
  }

  .before-after__arrow {
    min-height: 2rem;
  }

  .before-after__arrow::before {
    content: "↓";
  }

  .story-grid {
    gap: 1.25rem;
  }

  .profile-card {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 1rem;
  }

  .profile-card__image {
    width: 6rem;
    height: 6rem;
  }

  .article-pager {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-pager a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

}

@media (max-width: 32rem) {
  :root {
    --gutter: 1rem;
  }

  body {
    line-height: 1.75;
  }

  .site-identity__wordmark strong {
    font-size: 0.82rem;
  }

  .site-identity__wordmark span {
    font-size: 0.66rem;
  }

  .landing-main {
    padding-top: 3rem;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-toc a {
    grid-template-columns: 1.65rem 1fr;
  }

  .profile-card {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    padding: 0.9rem;
    align-items: start;
    gap: 0.8rem;
  }

  .profile-card__image {
    width: 4.5rem;
    height: 4.5rem;
  }

  .profile-card h3 {
    font-size: 1rem;
  }

  .profile-card__details p {
    font-size: 0.76rem;
  }

  .story-section__header h2 {
    font-size: 1.38rem;
  }

  .site-footer {
    padding-inline: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
