/*
Theme Name: Akison Portfolio
Theme URI: https://akisonblog.com/
Description: SWELL child theme for the Akison portfolio homepage.
Author: Akison
Template: swell
Version: 1.2.6
Text Domain: akison-portfolio
*/

:root {
  --ak-paper: #f5f2ec;
  --ak-paper-strong: #fffdf9;
  --ak-ink: #171717;
  --ak-muted: #65625d;
  --ak-line: #1d1d1d;
  --ak-blue: #2455e6;
  --ak-yellow: #ffd43b;
  --ak-coral: #ff6b4a;
  --ak-radius: 18px;
  --ak-space: clamp(72px, 10vw, 128px);
  --ak-container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body.akison-portfolio-home,
body.akison-portfolio-about {
  margin: 0;
  color: var(--ak-ink);
  background: var(--ak-paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

body.akison-portfolio-home *,
body.akison-portfolio-about * {
  box-sizing: border-box;
}

body.akison-portfolio-home a,
body.akison-portfolio-about a {
  color: inherit;
}

body.akison-portfolio-home .ak-skip-link,
body.akison-portfolio-about .ak-skip-link,
body.akison-portfolio-fuji .ak-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--ak-ink);
  transform: translateY(-150%);
}

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

.ak-container {
  width: min(calc(100% - 48px), var(--ak-container));
  margin-inline: auto;
}

.ak-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(23, 23, 23, 0.15);
  background: var(--ak-paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.ak-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ak-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ak-ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ak-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ak-line);
  background: var(--ak-yellow);
  box-shadow: 3px 3px 0 var(--ak-line);
  font-weight: 900;
}

.ak-menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 2px solid var(--ak-line);
  border-radius: 999px;
  color: var(--ak-ink);
  background: var(--ak-paper-strong);
  font: inherit;
  font-weight: 700;
}

.ak-nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ak-nav-list a {
  font-size: 0.875rem;
  font-weight: 700;
  text-underline-offset: 6px;
}

.ak-nav-list a:hover,
.ak-nav-list a:focus-visible {
  text-decoration-thickness: 3px;
  text-decoration-color: var(--ak-coral);
}

.ak-hero {
  display: grid;
  min-height: calc(100svh - 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  padding-block: clamp(56px, 8vw, 96px);
}

.ak-kicker,
.ak-section-label,
.ak-card-meta,
.ak-stat-label {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ak-kicker {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 10px;
  border: 1px solid var(--ak-line);
  background: var(--ak-paper-strong);
  box-shadow: 4px 4px 0 var(--ak-line);
}

.ak-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.ak-highlight {
  display: inline;
  padding-inline: 0.08em;
  background: none;
  box-shadow: inset 0 -0.42em 0 var(--ak-yellow);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ak-hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--ak-muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.ak-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ak-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid var(--ak-line);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ak-button:hover,
.ak-button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ak-line);
}

body.akison-portfolio-home .ak-button--primary,
body.akison-portfolio-about .ak-button--primary {
  color: #fff;
  background: var(--ak-blue);
}

body.akison-portfolio-fuji .ak-button--primary {
  color: var(--ak-ink);
  background: var(--ak-yellow);
}

.ak-button--secondary {
  background: var(--ak-paper-strong);
}

.ak-hero-panel {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 2px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-blue);
  box-shadow: 10px 10px 0 var(--ak-line);
}

.ak-hero-panel::before,
.ak-hero-panel::after {
  position: absolute;
  content: "";
  border: 2px solid var(--ak-line);
  border-radius: 999px;
}

.ak-hero-panel::before {
  top: 42px;
  right: -54px;
  width: 230px;
  height: 230px;
  background: var(--ak-yellow);
}

.ak-hero-panel::after {
  bottom: -62px;
  left: -46px;
  width: 190px;
  height: 190px;
  background: var(--ak-coral);
}

.ak-panel-note {
  position: absolute;
  z-index: 2;
  max-width: 250px;
  padding: 16px 18px;
  border: 2px solid var(--ak-line);
  background: var(--ak-paper-strong);
  box-shadow: 5px 5px 0 var(--ak-line);
  font-weight: 800;
  line-height: 1.45;
}

.ak-panel-note:nth-child(1) {
  top: 22%;
  left: 8%;
  transform: rotate(-3deg);
}

.ak-panel-note:nth-child(2) {
  top: 48%;
  right: 7%;
  transform: rotate(2deg);
}

.ak-panel-note:nth-child(3) {
  right: 20%;
  bottom: 10%;
  transform: rotate(-1deg);
}

.ak-section {
  padding-block: var(--ak-space);
  border-top: 1px solid rgba(23, 23, 23, 0.18);
}

.ak-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 52px;
}

.ak-section-head h2 {
  max-width: 800px;
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.ak-section-intro {
  margin: 0;
  color: var(--ak-muted);
}

.ak-work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.ak-work-card {
  grid-column: span 6;
  overflow: hidden;
  border: 2px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-paper-strong);
  box-shadow: 6px 6px 0 var(--ak-line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ak-work-card:first-child {
  grid-column: span 7;
}

.ak-work-card:nth-child(2) {
  grid-column: span 5;
}

.ak-work-card:hover,
.ak-work-card:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--ak-line);
}

.ak-card-visual {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--ak-line);
  background: var(--ak-yellow);
}

.ak-work-card:nth-child(3n + 2) .ak-card-visual {
  background: var(--ak-coral);
}

.ak-work-card:nth-child(3n) .ak-card-visual {
  color: #fff;
  background: var(--ak-blue);
}

.ak-card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ak-card-number {
  position: relative;
  z-index: 1;
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  opacity: 0.85;
}

.ak-work-card--fuji .ak-card-visual {
  background: var(--ak-blue);
}

.ak-fuji-card-art {
  position: relative;
  display: grid;
  width: min(78%, 360px);
  min-height: 210px;
  align-content: center;
  padding: 24px;
  border: 2px solid var(--ak-line);
  color: #fff;
  background: #0b2940;
  box-shadow: 8px 8px 0 var(--ak-yellow);
}

.ak-fuji-card-art span {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--ak-yellow);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.ak-fuji-card-art strong {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.ak-fuji-card-art i {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: 96px;
  height: 88px;
  background: var(--ak-paper-strong);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}

.ak-card-body {
  padding: clamp(22px, 3vw, 34px);
}

.ak-card-meta {
  margin: 0 0 10px;
  color: var(--ak-muted);
}

.ak-card-body h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.ak-card-body h3 a {
  text-decoration: none;
}

.ak-card-body h3 a::after {
  content: " ↗";
  color: var(--ak-blue);
}

.ak-card-excerpt {
  display: -webkit-box;
  margin: 14px 0 0;
  overflow: hidden;
  color: var(--ak-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ak-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 110px);
}

.ak-about-card {
  align-self: start;
  padding: 28px;
  border: 2px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-yellow);
  box-shadow: 8px 8px 0 var(--ak-line);
}

.ak-about-card strong {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.ak-about-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.ak-about-copy p {
  max-width: 700px;
  color: var(--ak-muted);
  font-size: 1.05rem;
}

.ak-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ak-topics li {
  padding: 7px 13px;
  border: 1px solid var(--ak-line);
  border-radius: 999px;
  background: var(--ak-paper-strong);
  font-weight: 700;
}

.ak-latest-list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ak-line);
  list-style: none;
}

.ak-latest-list li {
  border-bottom: 1px solid rgba(23, 23, 23, 0.25);
}

.ak-latest-list a {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-block: 24px;
  text-decoration: none;
}

.ak-latest-list a:hover .ak-latest-title,
.ak-latest-list a:focus-visible .ak-latest-title {
  text-decoration: underline;
  text-decoration-color: var(--ak-yellow);
  text-decoration-thickness: 6px;
  text-underline-offset: 4px;
}

.ak-latest-date {
  color: var(--ak-muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
}

.ak-latest-title {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 800;
}

.ak-latest-arrow {
  font-size: 1.4rem;
}

.ak-site-footer {
  color: #fff;
  background: var(--ak-ink);
}

/* Fuji book landing page */
body.akison-portfolio-fuji {
  --ak-mountain: #0b2940;
  --ak-mountain-soft: #133951;
  margin: 0;
  color: var(--ak-ink);
  background: var(--ak-paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

body.akison-portfolio-fuji * {
  box-sizing: border-box;
}

body.akison-portfolio-fuji a {
  color: inherit;
}

.ak-fuji-lp h1,
.ak-fuji-lp h2,
.ak-fuji-lp h3 {
  text-wrap: balance;
}

.ak-fuji-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--ak-mountain);
}

.ak-fuji-hero::after {
  position: absolute;
  right: -10vw;
  bottom: -18vw;
  width: 64vw;
  height: 42vw;
  background: rgba(255, 255, 255, 0.06);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
}

.ak-fuji-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100svh - 72px);
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 9vw, 120px);
  padding-block: clamp(64px, 9vw, 112px);
}

.ak-fuji-hero .ak-kicker {
  color: var(--ak-ink);
  background: var(--ak-yellow);
}

.ak-fuji-hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.ak-fuji-hero-copy > p:not(.ak-kicker, .ak-fuji-caution) {
  max-width: 670px;
  margin: 30px 0 0;
  color: #e5edf2;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.ak-fuji-caution,
.ak-fuji-rule-note {
  margin: 18px 0 0;
  color: #cbd8df;
  font-size: 0.82rem;
}

.ak-book-stage {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.ak-book-stage > p {
  margin: 0;
  color: #e5edf2;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ak-book-cover {
  position: relative;
  display: flex;
  width: min(100%, 340px);
  aspect-ratio: 0.72;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  overflow: hidden;
  border: 2px solid var(--ak-line);
  color: #fff;
  background: #102f47;
  box-shadow: 16px 16px 0 var(--ak-yellow);
  transform: rotate(2deg);
}

.ak-book-cover small {
  position: absolute;
  top: 26px;
  left: 30px;
  color: var(--ak-yellow);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ak-book-cover strong {
  position: relative;
  z-index: 1;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.ak-book-cover > span {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--ak-yellow);
  font-size: 1.5rem;
  font-weight: 900;
}

.ak-book-cover i {
  position: absolute;
  right: -22px;
  bottom: -2px;
  width: 230px;
  height: 210px;
  background: linear-gradient(135deg, #fff 0 48%, #dfe9ee 49% 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.94;
}

.ak-fuji-facts {
  border-block: 2px solid var(--ak-line);
  background: var(--ak-yellow);
}

.ak-fuji-facts .ak-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ak-fuji-facts p {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  border-right: 1px solid rgba(23, 23, 23, 0.3);
}

.ak-fuji-facts p:last-child {
  border-right: 0;
}

.ak-fuji-facts strong {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.ak-fuji-facts span {
  font-weight: 800;
}

.ak-fuji-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(48px, 9vw, 120px);
}

.ak-fuji-split h2 {
  max-width: 720px;
  margin: 8px 0 0;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.ak-fuji-body-copy > p {
  margin: 0 0 1.4em;
  color: var(--ak-muted);
  font-size: 1.08rem;
}

.ak-fuji-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 42px 0 0;
  padding: 0;
  border-top: 2px solid var(--ak-line);
  list-style: none;
}

.ak-fuji-path li {
  position: relative;
  padding-top: 22px;
  font-weight: 800;
}

.ak-fuji-path li::before {
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ak-line);
  border-radius: 50%;
  background: var(--ak-yellow);
  content: "";
}

.ak-fuji-path b {
  display: block;
  color: var(--ak-muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
}

.ak-fuji-dark {
  color: #fff;
  background: var(--ak-mountain);
}

.ak-fuji-dark .ak-section-intro,
.ak-fuji-dark .ak-fuji-rule-note,
.ak-fuji-dark .ak-section-label {
  color: #d8e2e8;
}

.ak-rule-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.ak-rule-card {
  min-height: 310px;
  padding: 28px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: var(--ak-mountain-soft);
}

.ak-rule-card--accent {
  color: var(--ak-ink);
  background: var(--ak-yellow);
}

.ak-rule-card > span,
.ak-chapter-card > span,
.ak-fit-card > span {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ak-rule-card > strong {
  display: block;
  margin: 48px 0 14px;
  font-size: clamp(1.4rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ak-rule-card > strong small {
  margin-left: 5px;
  font-size: 1rem;
}

.ak-rule-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.ak-rule-card p {
  margin: 0;
  color: inherit;
}

.ak-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ak-chapter-card {
  min-height: 160px;
  padding: 26px;
  border: 2px solid var(--ak-line);
  background: var(--ak-paper-strong);
  box-shadow: 5px 5px 0 var(--ak-line);
}

.ak-chapter-card:nth-child(4n + 2),
.ak-chapter-card:nth-child(4n + 3) {
  background: var(--ak-yellow);
}

.ak-chapter-card h3 {
  max-width: 460px;
  margin: 42px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
}

.ak-book-preview {
  background: var(--ak-paper);
}

.ak-book-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ak-book-preview-card {
  overflow: hidden;
  margin: 0;
  border: 2px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-paper-strong);
  box-shadow: 5px 5px 0 var(--ak-line);
}

.ak-book-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fffdf9;
}

.ak-book-preview-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 20px;
  border-top: 2px solid var(--ak-line);
}

.ak-book-preview-card figcaption span {
  flex: 0 0 auto;
  color: var(--ak-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ak-book-preview-card figcaption strong {
  font-size: 1rem;
}

.ak-failure-list {
  margin: 0;
  padding: 0;
  border-top: 2px solid #fff;
  list-style: none;
}

.ak-failure-list li {
  display: grid;
  grid-template-columns: 70px minmax(150px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.ak-failure-list b {
  color: var(--ak-yellow);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.ak-failure-list strong {
  font-size: 1.35rem;
}

.ak-failure-list span {
  color: #d8e2e8;
}

.ak-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ak-fit-card {
  padding: clamp(28px, 5vw, 54px);
  border: 2px solid var(--ak-line);
  background: var(--ak-paper-strong);
  box-shadow: 7px 7px 0 var(--ak-line);
}

.ak-fit-card--yes {
  background: var(--ak-yellow);
}

.ak-fit-card h3 {
  margin: 28px 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.ak-fit-card ul {
  margin: 0;
  padding-left: 1.25em;
}

.ak-fit-card li + li {
  margin-top: 10px;
}

.ak-fuji-source {
  background: var(--ak-paper-strong);
}

.ak-source-mark {
  display: grid;
  aspect-ratio: 1;
  place-content: center;
  border: 2px solid var(--ak-line);
  border-radius: 50%;
  text-align: center;
}

.ak-source-mark small {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ak-source-mark strong {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.ak-source-mark span {
  margin-top: 18px;
  color: var(--ak-muted);
  font-size: 0.86rem;
}

.ak-author-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 23, 23, 0.25);
}

.ak-author-sign span {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.ak-field-proof {
  background: var(--ak-paper);
}

.ak-field-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ak-field-proof-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: clamp(28px, 5vw, 52px);
  border: 2px solid var(--ak-line);
  color: var(--ak-ink);
  background: var(--ak-paper-strong);
  box-shadow: 7px 7px 0 var(--ak-line);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ak-field-proof-card--data {
  background: var(--ak-yellow);
}

.ak-field-proof-card:hover,
.ak-field-proof-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--ak-line);
}

.ak-field-proof-card > span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ak-field-proof-card h3 {
  margin: 26px 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.ak-field-proof-card p {
  margin: 0 0 28px;
}

.ak-field-proof-card strong {
  margin-top: auto;
  font-size: 1rem;
}

.ak-fuji-closing {
  padding-block: var(--ak-space);
  color: #fff;
  background: var(--ak-mountain);
}

.ak-fuji-closing-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(48px, 10vw, 130px);
}

.ak-fuji-closing h2 {
  margin: 8px 0 24px;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.ak-fuji-closing p:not(.ak-section-label, .ak-fuji-caution) {
  max-width: 700px;
  color: #d8e2e8;
}

.ak-book-cover--small {
  width: min(100%, 280px);
  box-shadow: 12px 12px 0 var(--ak-yellow);
}

.ak-book-cover--small strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.ak-book-details {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.35);
}

.ak-book-details div {
  padding: 16px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.ak-book-details div:last-child {
  border-right: 0;
}

.ak-book-details dt {
  color: #cbd8df;
  font-size: 0.8rem;
}

.ak-book-details dd {
  margin: 2px 0 0;
  font-weight: 800;
}

/* About page */
.ak-about-hero {
  display: grid;
  min-height: calc(100svh - 72px);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding-block: clamp(64px, 9vw, 112px);
}

.ak-about-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.ak-about-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ak-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.ak-profile-art {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-yellow);
  box-shadow: 10px 10px 0 var(--ak-line);
}

.ak-profile-art::before {
  position: absolute;
  top: -85px;
  right: -70px;
  width: 270px;
  height: 270px;
  border: 2px solid var(--ak-line);
  border-radius: 50%;
  background: var(--ak-coral);
  content: "";
}

.ak-profile-art::after {
  position: absolute;
  bottom: -110px;
  left: -100px;
  width: 300px;
  height: 300px;
  border: 2px solid var(--ak-line);
  border-radius: 50%;
  background: var(--ak-blue);
  content: "";
}

.ak-profile-monogram {
  position: relative;
  z-index: 2;
  font-size: clamp(9rem, 21vw, 16rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.1em;
}

.ak-profile-tag {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border: 2px solid var(--ak-line);
  background: var(--ak-paper-strong);
  box-shadow: 4px 4px 0 var(--ak-line);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.ak-profile-tag--top {
  top: 38px;
  left: 32px;
  transform: rotate(-2deg);
}

.ak-profile-tag--bottom {
  right: 28px;
  bottom: 34px;
  transform: rotate(2deg);
}

.ak-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 9vw, 120px);
}

.ak-story-grid h2,
.ak-about-section-title {
  margin: 8px 0 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.ak-story-copy {
  max-width: 720px;
  color: var(--ak-muted);
  font-size: 1.08rem;
}

.ak-story-copy p {
  margin: 0 0 1.35em;
}

.ak-values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.ak-value-card {
  min-height: 250px;
  padding: 28px;
  border: 2px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-paper-strong);
  box-shadow: 6px 6px 0 var(--ak-line);
}

.ak-value-card:nth-child(2) {
  background: var(--ak-yellow);
}

.ak-value-card:nth-child(3) {
  color: #fff;
  background: var(--ak-blue);
}

.ak-value-card:nth-child(4) {
  background: var(--ak-coral);
}

.ak-value-number {
  display: block;
  margin-bottom: 44px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.ak-value-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.ak-value-card p {
  margin: 0;
}

.ak-car-history {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 2px solid var(--ak-line);
}

.ak-car-step {
  position: relative;
  padding: 30px 24px 0 0;
}

.ak-car-step::before {
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ak-line);
  border-radius: 50%;
  background: var(--ak-yellow);
  content: "";
}

.ak-car-step strong {
  display: block;
  font-size: 1.15rem;
}

.ak-car-step span {
  color: var(--ak-muted);
  font-size: 0.9rem;
}

.ak-about-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  align-items: end;
  gap: 32px;
  padding: clamp(34px, 6vw, 72px);
  border: 2px solid var(--ak-line);
  border-radius: var(--ak-radius);
  color: #fff;
  background: var(--ak-blue);
  box-shadow: 9px 9px 0 var(--ak-line);
}

.ak-about-cta h2 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.ak-about-cta .ak-button {
  color: var(--ak-ink);
  background: var(--ak-yellow);
}

.ak-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding-block: 64px;
}

.ak-footer-inner h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.ak-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ak-footer-links a {
  font-weight: 700;
  text-underline-offset: 5px;
}

@media (max-width: 840px) {
  .ak-container {
    width: min(calc(100% - 32px), var(--ak-container));
  }

  .ak-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ak-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    border: 2px solid var(--ak-line);
    border-radius: 14px;
    background: var(--ak-paper-strong);
    box-shadow: 6px 6px 0 var(--ak-line);
  }

  .ak-nav[data-open="true"] {
    display: block;
  }

  .ak-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .ak-nav-list a {
    display: block;
    padding: 10px 8px;
  }

  .ak-hero,
  .ak-about-hero,
  .ak-section-head,
  .ak-about-grid,
  .ak-story-grid,
  .ak-about-cta,
  .ak-footer-inner {
    grid-template-columns: 1fr;
  }

  .ak-hero {
    min-height: auto;
    padding-block: 56px 80px;
  }

  .ak-about-hero {
    min-height: auto;
    padding-block: 56px 80px;
  }

  .ak-profile-art {
    min-height: 400px;
  }

  .ak-car-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .ak-about-cta {
    align-items: start;
  }

  .ak-hero h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .ak-hero-panel {
    min-height: 390px;
  }

  .ak-section-head {
    align-items: start;
    margin-bottom: 36px;
  }

  .ak-work-card,
  .ak-work-card:first-child,
  .ak-work-card:nth-child(2) {
    grid-column: 1 / -1;
  }

  .ak-footer-links {
    align-items: flex-start;
  }

  .ak-fuji-hero-grid,
  .ak-fuji-split,
  .ak-fuji-closing-grid {
    grid-template-columns: 1fr;
  }

  .ak-fuji-hero-grid {
    min-height: auto;
    padding-block: 64px 88px;
  }

  .ak-book-stage {
    margin-top: 20px;
  }

  .ak-book-cover {
    width: min(72vw, 330px);
  }

  .ak-rule-grid {
    grid-template-columns: 1fr;
  }

  .ak-field-proof-grid {
    grid-template-columns: 1fr;
  }

  .ak-rule-card {
    min-height: 240px;
  }

  .ak-source-mark {
    width: min(78vw, 430px);
    justify-self: center;
  }

  .ak-book-cover--small {
    width: min(60vw, 280px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .ak-kicker,
  .ak-section-label,
  .ak-card-meta,
  .ak-latest-date {
    font-size: 12px;
  }

  .ak-header-inner {
    min-height: 64px;
  }

  .ak-nav {
    top: 64px;
  }

  .ak-hero {
    gap: 42px;
  }

  .ak-hero-panel {
    min-height: 340px;
  }

  .ak-panel-note {
    max-width: 210px;
    padding: 13px 14px;
    font-size: 0.9rem;
  }

  .ak-card-visual {
    min-height: 220px;
  }

  .ak-about-hero h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .ak-profile-art {
    min-height: 340px;
  }

  .ak-values-grid,
  .ak-car-history {
    grid-template-columns: 1fr;
  }

  .ak-value-card {
    min-height: 220px;
  }

  .ak-latest-list a {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }

  .ak-latest-date {
    grid-column: 1 / -1;
  }

  .ak-fuji-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .ak-fuji-facts .ak-container {
    grid-template-columns: 1fr;
  }

  .ak-fuji-facts p {
    min-height: 88px;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.3);
  }

  .ak-fuji-facts p:last-child {
    border-bottom: 0;
  }

  .ak-fuji-path {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 2px solid var(--ak-line);
  }

  .ak-fuji-path li {
    min-height: 58px;
    padding: 0 0 16px 24px;
  }

  .ak-fuji-path li::before {
    top: 4px;
    left: -8px;
  }

  .ak-chapter-grid,
  .ak-book-preview-grid,
  .ak-fit-grid {
    grid-template-columns: 1fr;
  }

  .ak-failure-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .ak-failure-list span {
    grid-column: 2;
  }

  .ak-book-details {
    grid-template-columns: 1fr;
  }

  .ak-book-details div {
    display: flex;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .ak-book-details div:last-child {
    border-bottom: 0;
  }
}

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

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

/* Kintsugi repair demo: the original preview and theme remain unchanged. */

/* 1. Restore readable contrast on the light secondary button. */
body.akison-portfolio-fuji .ak-button--secondary {
  color: #171717;
  background: #fffdf9;
}

/* 2. Gather repeated text into a smaller, consistent type scale. */
.ak-fuji-hero-copy > p:not(.ak-kicker, .ak-fuji-caution),
.ak-fuji-body-copy > p,
.ak-book-stage > p,
.ak-failure-list strong,
.ak-nav-list a {
  font-size: 1rem;
}

.ak-fuji-caution,
.ak-fuji-rule-note,
.ak-kicker,
.ak-section-label,
.ak-rule-card > span,
.ak-chapter-card > span,
.ak-fit-card > span,
.ak-fuji-path b,
.ak-book-details dt,
.ak-source-mark span,
.ak-author-sign span {
  font-size: 0.75rem;
}

.ak-rule-card > strong,
.ak-book-cover > span {
  font-size: 1.5rem;
}

.ak-rule-card h3,
.ak-chapter-card h3,
.ak-fit-card h3 {
  font-size: 1.5rem;
}

.ak-book-cover strong,
.ak-book-cover--small strong,
.ak-source-mark strong {
  font-size: 3rem;
}

/* 3. Consolidate near-identical colors by role. */
body.akison-portfolio-fuji {
  --ak-line: #171717;
}

.ak-fuji-hero,
.ak-fuji-dark,
.ak-fuji-closing {
  color: #fffdf9;
}

.ak-book-cover {
  color: #fffdf9;
  background: #0b2940;
}

.ak-fuji-hero-copy > p:not(.ak-kicker, .ak-fuji-caution),
.ak-book-stage > p,
.ak-fuji-caution,
.ak-fuji-rule-note,
.ak-fuji-dark .ak-section-intro,
.ak-fuji-dark .ak-section-label,
.ak-failure-list span,
.ak-fuji-closing p:not(.ak-section-label, .ak-fuji-caution),
.ak-book-details dt {
  color: #d8e2e8;
}

/* Keep the yellow underline from touching the following paragraph. */
.ak-fuji-body-copy h2 {
  margin-bottom: 28px;
}

/* Keep supplementary copy at the 12px readability floor on WordPress mobile. */
@media (max-width: 560px) {
  .ak-fuji-caution,
  .ak-fuji-rule-note,
  .ak-kicker,
  .ak-section-label,
  .ak-rule-card > span,
  .ak-chapter-card > span,
  .ak-fit-card > span,
  .ak-fuji-path b,
  .ak-book-details dt,
  .ak-source-mark span,
  .ak-author-sign span,
  .ak-book-preview-card figcaption span {
    font-size: 12px;
  }
}
