:root {
  --ink: #172126;
  --muted: #5d6970;
  --paper: #fbf8f2;
  --shell: #fffdf8;
  --aqua: #44b9c6;
  --coral: #f36f62;
  --lime: #b5d36a;
  --line: rgba(23, 33, 38, 0.13);
  --shadow: 0 22px 55px rgba(20, 45, 55, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  color: #fff;
}

.brand,
.nav {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(9, 22, 27, 0.38);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  gap: 10px;
  min-width: 0;
  padding: 8px 13px 8px 9px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--coral);
  font-weight: 900;
}

.nav {
  gap: 3px;
  padding: 7px;
  border-radius: 999px;
}

.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 58px;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero/original-twitter-header.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 13, 18, 0.64) 0%, rgba(4, 13, 18, 0.38) 45%, rgba(4, 13, 18, 0.62) 100%),
    linear-gradient(0deg, rgba(4, 13, 18, 0.72) 0%, rgba(4, 13, 18, 0.12) 50%);
}

.hero-content {
  width: min(700px, 100%);
  margin-left: auto;
  padding-top: 8vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

.name-lock {
  white-space: nowrap;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.lead {
  width: min(620px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 900;
}

.button.primary {
  background: #fff;
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  object-fit: contain;
}

.gallery-section,
.profile-section {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 980px;
  margin: 0 auto 28px;
}

.gallery-grid {
  display: grid;
  gap: clamp(42px, 6vw, 76px);
  max-width: 1220px;
  margin: 0 auto;
}

.gallery-month {
  display: grid;
  gap: 18px;
}

.gallery-month-title {
  width: fit-content;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--shell);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.month-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 132px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  position: relative;
  grid-column: span 3;
  grid-row: span 2;
  min-height: 0;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: var(--shell);
  box-shadow: var(--shadow);
}

.photo-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
}

.photo-open:focus-visible {
  outline: 4px solid var(--lime);
  outline-offset: -6px;
}

.photo-card.feature {
  grid-column: span 6;
  grid-row: span 4;
}

.photo-card.tall {
  grid-column: span 3;
  grid-row: span 4;
}

.photo-card.wide {
  grid-column: span 6;
  grid-row: span 2;
}

.photo-card img,
.photo-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover .photo-open img {
  transform: scale(1.035);
}

.photo-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  max-width: calc(100% - 28px);
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.photo-meta {
  min-width: 0;
}

.photo-card figcaption a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}

.x-icon {
  display: block;
  object-fit: contain;
}

.photo-card figcaption .x-icon {
  width: 16px;
  height: 16px;
  padding: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.photo-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #df5146;
  font-variant-numeric: tabular-nums;
}

.photo-like-button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 111, 98, 0.14);
  color: #df5146;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.photo-like-button:not(:disabled):hover {
  background: rgba(243, 111, 98, 0.24);
  transform: translateY(-1px);
}

.photo-like-button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.photo-like-button:disabled {
  cursor: default;
  opacity: 1;
}

.photo-like-button.is-liked {
  background: #df5146;
  color: #fff;
}

.photo-like-count {
  min-width: 2ch;
  color: var(--ink);
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  background: var(--shell);
  border-block: 1px solid var(--line);
}

.profile-copy {
  max-width: 560px;
}

.profile-copy p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.profile-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.profile-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.profile-list a {
  color: #0f7f8c;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.visitor-counter {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-fill-color: currentColor;
}

.visitor-counter:hover {
  color: #fff;
}

.visitor-counter:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.visitor-count {
  color: inherit;
  font-variant-numeric: tabular-nums;
  -webkit-text-fill-color: currentColor;
}

.lightbox {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(4, 13, 18, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox-image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding-right: 48px;
}

.lightbox-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 800;
}

.lightbox-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.lightbox.without-link .lightbox-link {
  display: none;
}

.lightbox-link::before {
  content: none;
}

.lightbox-link .x-icon {
  width: 18px;
  height: 18px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(4, 13, 18, 0.62);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
}

.secret-confirm {
  width: min(430px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.secret-confirm::backdrop {
  background: rgba(4, 13, 18, 0.62);
  backdrop-filter: blur(6px);
}

.secret-confirm-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--shell);
  box-shadow: var(--shadow);
}

.secret-confirm-title {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.7;
}

.secret-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.secret-confirm-actions button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.secret-confirm-cancel {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.secret-confirm-accept {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

@media (max-width: 980px) {
  .month-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .photo-card {
    grid-column: span 3;
  }

  .photo-card.feature,
  .photo-card.wide {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 12px;
  }

  .brand {
    max-width: 58vw;
    font-size: 0.9rem;
  }

  .nav {
    gap: 0;
  }

  .nav a {
    padding: 7px 8px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 82svh;
    align-items: end;
    padding: 104px 18px 44px;
  }

  .hero-media {
    background-position: 12% top;
    background-size: auto 58%;
    background-repeat: no-repeat;
    background-color: #07141a;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(4, 13, 18, 0.18) 0%, rgba(4, 13, 18, 0.08) 34%, rgba(4, 13, 18, 0.82) 62%, rgba(4, 13, 18, 0.9) 100%),
      linear-gradient(90deg, rgba(4, 13, 18, 0.36) 0%, rgba(4, 13, 18, 0.08) 62%, rgba(4, 13, 18, 0.28) 100%);
  }

  .hero-content {
    margin-left: 0;
    padding-top: 0;
  }

  h1 {
    font-size: 2.34rem;
    line-height: 1.12;
  }

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

  .month-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 68vw;
  }

  .profile-section {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card.feature,
  .photo-card.tall,
  .photo-card.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .lightbox-meta {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 0;
  }

  .secret-confirm-actions button {
    flex: 1 1 120px;
  }
}
