:root {
  --bg: #fbf6f0;
  --paper: #fffdf9;
  --paper-soft: #fff8f2;
  --text: #2d2426;
  --muted: #77666b;
  --line: rgba(80, 48, 52, 0.14);
  --accent: #d84f76;
  --accent-deep: #9f2f55;
  --mint: #4d9d91;
  --blue: #536fa9;
  --shadow: 0 18px 42px rgba(96, 54, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.75;
  background:
    linear-gradient(135deg, rgba(216, 79, 118, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(77, 157, 145, 0.14), transparent 32%),
    var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 0 0;
}

.site-header-title {
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.hamburger-menu {
  position: relative;
}

.hamburger-menu > summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 8px 18px rgba(96, 54, 60, 0.08);
  cursor: pointer;
  list-style: none;
}

.hamburger-menu > summary::-webkit-details-marker {
  display: none;
}

.hamburger-menu > summary span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 4px;
  width: min(240px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: var(--shadow);
}

.menu-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: var(--paper-soft);
  outline: none;
}

.menu-accordion {
  border-radius: 8px;
}

.menu-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.menu-accordion summary::-webkit-details-marker {
  display: none;
}

.menu-accordion summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.menu-accordion[open] summary::after {
  transform: rotate(225deg);
}

.menu-accordion summary:hover,
.menu-accordion summary:focus-visible {
  background: var(--paper-soft);
  outline: none;
}

.menu-accordion-list {
  display: grid;
  gap: 2px;
  margin-top: 2px;
  padding-left: 8px;
}

.menu-accordion-list a {
  font-size: 0.88rem;
}

.page-shell {
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(44px, env(safe-area-inset-bottom));
}

.profile {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  margin-bottom: 16px;
  padding: 30px 190px 30px 24px;
  color: #fffdf9;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(45, 36, 38, 0.24), rgba(45, 36, 38, 0.08)),
    linear-gradient(135deg, #d84f76 0%, #7f5fb9 52%, #4d9d91 100%);
  box-shadow: var(--shadow);
}

.profile::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -44px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 253, 249, 0.4);
  transform: rotate(12deg);
}

.profile-mark {
  display: block;
  position: absolute;
  top: 48px;
  right: 56px;
  z-index: 1;
  width: 128px;
  height: 128px;
  border: 2px solid rgba(255, 253, 249, 0.72);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.18);
  box-shadow: 0 8px 18px rgba(45, 36, 38, 0.18);
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 13vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  font-size: 0.42em;
  font-weight: 700;
}

.lead {
  position: relative;
  max-width: 420px;
  margin-bottom: 0;
  color: rgba(255, 253, 249, 0.9);
  font-weight: 700;
}

.block {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 10px 28px rgba(96, 54, 60, 0.08);
  backdrop-filter: blur(8px);
}

.block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.block h2::before {
  content: "";
  width: 10px;
  height: 24px;
  border-radius: 99px;
  background: var(--accent);
}

.block:nth-of-type(3) h2::before {
  background: var(--mint);
}

.block:nth-of-type(4) h2::before {
  background: var(--blue);
}

.block p {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 600;
}

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

.block h3 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.4;
}

.skill-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 14px 12px 32px;
  border: 1px solid rgba(216, 79, 118, 0.18);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--muted);
  font-weight: 600;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-card,
.primary-link {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.link-card {
  padding: 15px 16px;
  border: 1px solid rgba(216, 79, 118, 0.24);
  background: var(--paper-soft);
}

.link-card:hover,
.link-card:focus-visible,
.primary-link:hover,
.primary-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(96, 54, 60, 0.12);
  outline: none;
}

.link-label,
.link-text,
.link-url {
  display: block;
}

.link-label {
  font-weight: 800;
  color: var(--accent-deep);
}

.link-text {
  margin-top: 2px;
  color: var(--text);
  font-size: 0.95rem;
}

.link-url {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.86rem;
}

.primary-link {
  margin-top: 14px;
  padding: 14px 18px;
  color: #fffdf9;
  text-align: center;
  font-weight: 800;
  background: var(--text);
}

.video-page {
  display: grid;
  min-height: calc(100vh - 64px);
  align-items: center;
}

.video-gate {
  padding: 24px;
}

.video-gate h1 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(2rem, 10vw, 3.4rem);
  line-height: 1.08;
}

.video-eyebrow {
  color: var(--accent-deep);
}

.video-show-button {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.video-show-button[hidden],
.video-frame[hidden] {
  display: none;
}

.video-frame {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(80, 48, 52, 0.16);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 14px 30px rgba(96, 54, 60, 0.16);
}

.video-frame.is-playing {
  box-shadow: none;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #111;
}

.archive-page {
  padding-top: 18px;
}

.archive-hero h1 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(2rem, 10vw, 3.4rem);
  line-height: 1.08;
}

.archive-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.archive-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(216, 79, 118, 0.24);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 10px 28px rgba(96, 54, 60, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.archive-card:hover,
.archive-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(96, 54, 60, 0.14);
  outline: none;
}

.archive-type {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fffdf9;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--accent);
}

.archive-title {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
}

.archive-text {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.zeta-card-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.zeta-card-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.zeta-card-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(80, 48, 52, 0.16);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(96, 54, 60, 0.1);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.zeta-card-thumb:hover,
.zeta-card-thumb:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(96, 54, 60, 0.14);
  outline: none;
}

.image-modal[hidden] {
  display: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 24, 27, 0.74);
  cursor: zoom-out;
}

.image-modal-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(94vw, 520px);
  max-height: 92vh;
}

.image-modal-close {
  justify-self: end;
  padding: 9px 14px;
  border: 1px solid rgba(255, 253, 249, 0.3);
  border-radius: 8px;
  color: #fffdf9;
  background: rgba(255, 253, 249, 0.16);
  font: inherit;
  font-weight: 800;
}

.image-modal-content img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 54px);
  border-radius: 8px;
  object-fit: contain;
  background: var(--paper);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 20px, 680px);
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .profile {
    min-height: 220px;
    padding: 24px 116px 24px 20px;
  }

  .profile-mark {
    top: 24px;
    right: 20px;
    width: 86px;
    height: 86px;
  }

  .block {
    padding: 18px 16px;
  }
}
