
/* ==========================================
   TBPOST
   RETRO LUXURY / EDITORIAL DESIGN
   BLUE × IVORY × VERMILION
========================================== */

/* FONTS */

@font-face {
  font-family: "OpenBaskerville";
  src: url("./fonts/OpenBaskerville-0.0.53.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "NewClearMincho";
  src: url("./fonts/NewClear-mincho.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Lobster";
  src: url("./fonts/Lobster-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* COLORS */

:root {
  --blue: #0644e8;
  --deep-blue: #092d9b;
  --red: #db3528;
  --ivory: #faf8ef;
  --white: #fff;
  --ink: #252b3c;
  --line: #d8d9d4;
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "NewClearMincho", serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.9;
  letter-spacing: .035em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue);
  color: white;
}

/* PRINT TEXTURE */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(75, 48, 30, .16) .45px,
    transparent .7px
  );
  background-size: 5px 5px;
  opacity: .1;
}

body::after {
  content: "821";
  position: fixed;
  right: 2vw;
  bottom: -3vw;
  z-index: -1;
  font-family: "OpenBaskerville", Georgia, serif;
  font-size: 15vw;
  line-height: 1;
  color: rgba(6, 68, 232, .035);
  pointer-events: none;
}

/* ==========================================
   HEADER
========================================== */

header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(250, 248, 239, .96);
  border-bottom: 1px solid var(--blue);
  backdrop-filter: blur(15px);
}

.header-inner {
  max-width: 1300px;
  margin: auto;
  padding: 23px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


.site-title {
  font-family: "Lobster", cursive;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  color: var(--blue);
}


.site-title::after {
  content: "A JOURNAL OF VISUAL CULTURE";
  display: block;
  margin-top: 9px;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-size: 7px;
  font-weight: bold;
  letter-spacing: .25em;
  color: var(--red);
}

/* HAMBURGER */

.hamburger {
  position: absolute;
  right: 40px;
  width: 30px;
  height: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 500;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transition: transform .3s, opacity .3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================
   NAVIGATION
========================================== */

.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  height: 100dvh;
  padding: 75px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--blue);
  border-left: 5px solid var(--ivory);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
  z-index: 400;
  visibility: hidden;
}

.nav-menu.active {
  transform: translateX(0);
  visibility: visible;
}

.nav-menu::before {
  content: "TBPOST / DIRECTORY";
  position: absolute;
  top: 40px;
  left: 42px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .25em;
  color: rgba(255,255,255,.75);
}

.nav-menu ul {
  list-style: none;
  width: 100%;
}

.nav-menu li {
  border-bottom: 1px solid rgba(255,255,255,.3);
}

.nav-menu a {
  display: block;
  position: relative;
  padding: 17px 0;
  font-family: "OpenBaskerville", Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: white;
  text-decoration: none;
  transition: padding-left .3s, color .3s;
}

.nav-menu a::before {
  content: "✳";
  margin-right: 12px;
  font-family: Georgia, serif;
  font-size: .8rem;
  color: #f5d3a2;
}

.nav-menu a:hover {
  padding-left: 9px;
  color: #fff0cb;
}

#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 35, 100, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 250;
}

#menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================
   MAIN VISUAL
========================================== */

.main-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 75px 20px;
  background: var(--ivory);
  border-bottom: 1px solid var(--blue);
  overflow: hidden;
}

.main-visual::before {
  content: "TBPOST  /  ISSUE NO. 001";
  position: absolute;
  top: 22px;
  left: 3vw;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .22em;
  color: var(--red);
}

.main-visual::after {
  content: "The Art of Being";
  position: absolute;
  bottom: 12px;
  right: 3vw;
  font-family: "OpenBaskerville", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 2.4rem);
  letter-spacing: -.04em;
  color: rgba(6, 68, 232, .22);
  pointer-events: none;
}

.main-visual img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  border: 8px solid white;
  outline: 1px solid var(--blue);
  box-shadow: 14px 14px 0 var(--blue);
  filter: contrast(1.04) saturate(1.08);
  transition: transform .5s, box-shadow .5s;
}

.main-visual img:hover {
  transform: translate(-4px, -4px);
  box-shadow: 18px 18px 0 var(--red);
}

/* ==========================================
   CONTENT / SECTION TITLES
========================================== */

main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.about,
.creators {
  position: relative;
  padding: 140px 0;
  text-align: center;
}

.about::before,
.creators::before {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  font-family: "OpenBaskerville", Georgia, serif;
  font-size: clamp(6rem, 12vw, 12rem);
  line-height: 1;
  color: rgba(6, 68, 232, .065);
}

.about::before {
  content: "01";
}

.creators::before {
  content: "02";
}

h2 {
  display: inline-block;
  margin-bottom: 55px;
  font-family: "OpenBaskerville", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: normal;
  font-style: italic;
  letter-spacing: -.055em;
  line-height: 1.2;
  color: var(--blue);
}

h2::after {
  content: "✳";
  display: block;
  margin: 14px auto 0;
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
  color: var(--red);
}

.about p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 2.2;
  letter-spacing: .06em;
}

/* ==========================================
   CREATORS
========================================== */

.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.creator {
  position: relative;
  padding: 12px 12px 22px;
  background: #fffdf8;
  border: 1px solid var(--blue);
  transition: transform .4s, box-shadow .4s;
}

.creator:hover {
  transform: translateY(-7px);
  box-shadow: 7px 7px 0 rgba(6,68,232,.16);
}

.creator::after {
  content: "✳";
  position: absolute;
  top: 4px;
  right: 8px;
  z-index: 2;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--red);
}

.creator img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(.78) contrast(1.08);
  transition: filter .4s;
}

.creator:hover img {
  filter: saturate(1.15) contrast(1.05);
}

.creator p {
  margin-top: 16px;
  font-size: .95rem;
  font-weight: normal;
  letter-spacing: .055em;
  color: var(--ink);
}

.creator p::before {
  content: "TBPOST / CONTRIBUTOR";
  display: block;
  margin-bottom: 5px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: .17em;
  color: var(--red);
}

/* ==========================================
   DIVIDER
========================================== */

.divider {
  border: 0;
  height: 1px;
  margin: 60px 0;
  background: var(--blue);
  opacity: .35;
}

/* ==========================================
   FEATURE / ARCHIVE
========================================== */

.custom-links {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr .8fr;
  gap: 30px;
  margin: 140px 0;
}

.custom-links::before {
  content: "Selected Works";
  position: absolute;
  top: -75px;
  left: 0;
  font-family: "OpenBaskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--blue);
}

.link-item,
.link-middle a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e7ecfa;
  border: 1px solid var(--blue);
}

.tall-left {
  aspect-ratio: 3 / 4;
}

.slim-right {
  aspect-ratio: 2.5 / 4;
}

.link-middle {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 30px;
  min-height: 0;
}

.link-item img,
.link-middle a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(.88);
  transition: transform .6s, filter .5s;
}

.link-item:hover img,
.link-middle a:hover img {
  transform: scale(1.05);
  filter: contrast(1.05) saturate(1.15);
}

/* 小さな広告ラベル */

.tall-left::after,
.link-middle a:first-child::after,
.slim-right::after {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 7px 10px;
  background: var(--ivory);
  border-left: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .1em;
  color: var(--red);
}

.tall-left::after {
  content: "01 / WORLD";
}

.link-middle a:first-child::after {
  content: "02 / CHARACTER";
}

.slim-right::after {
  content: "03 / GALLERY";
}

/* COMING SOON */

.link-middle a:nth-child(2) {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: var(--blue);
  color: white;
  font-family: "OpenBaskerville", Georgia, serif;
  text-decoration: none;
  transition: background .3s;
}

.link-middle a:nth-child(2) img {
  display: none;
}

.link-middle a:nth-child(2)::before {
  content: "TBPOST / NEXT COLLECTION";
  position: absolute;
  top: 15px;
  left: 17px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: .17em;
  color: rgba(255,255,255,.8);
}

.link-middle a:nth-child(2)::after {
  content: "Coming\A Soon";
  white-space: pre;
  text-align: center;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.link-middle a:nth-child(2):hover {
  background: var(--red);
}

/* ==========================================
   HOME
========================================== */

.home-btn {
  margin: 100px 0 140px;
  text-align: center;
}

.home-btn a {
  display: inline-block;
  padding: 18px 60px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-family: "OpenBaskerville", Georgia, serif;
  font-size: .95rem;
  font-style: italic;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .3s, color .3s;
}

.home-btn a::after {
  content: " ↗";
  color: var(--red);
}

.home-btn a:hover {
  background: var(--blue);
  color: white;
}

.home-btn a:hover::after {
  color: white;
}

/* ==========================================
   FOOTER
========================================== */

footer {
  padding: 50px 20px;
  background: var(--blue);
  border-top: 4px double var(--ivory);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .15em;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 900px) {
  main {
    padding: 0 20px;
  }

  .header-inner {
    padding: 22px 20px;
  }

  .hamburger {
    right: 20px;
  }

  .nav-menu {
    width: min(350px, 85vw);
    padding: 60px 30px;
  }

  .nav-menu::before {
    left: 30px;
  }

  .main-visual {
    padding: 60px 30px 75px;
  }

  .main-visual img {
    max-width: min(500px, calc(100% - 18px));
    box-shadow: 10px 10px 0 var(--blue);
  }

  .about,
  .creators {
    padding: 100px 0;
  }

  .creator-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .custom-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .link-middle {
    gap: 20px;
  }

  .tall-left,
  .slim-right,
  .link-middle a {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .site-title {
    font-size: 2rem;
  }

  .site-title::after {
    font-size: 6px;
    letter-spacing: .12em;
  }

  h2 {
    font-size: 2.4rem;
  }

  .creator-grid {
    gap: 14px;
  }

  .creator {
    padding: 8px 8px 16px;
  }

  .creator p {
    font-size: .85rem;
  }

  .creator p::before {
    font-size: 7px;
  }

  .custom-links::before {
    font-size: 2.2rem;
  }

  .nav-menu a {
    font-size: 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
}

/* ==========================================
   FONT UNIFICATION
   英字：Lobster
   日本語：NewClearMincho
========================================== */

body {
  font-family: "Lobster", "NewClearMincho", serif;
}

/* ロゴ・英語見出し・ナビゲーション */
.site-title,
h2,
.custom-links::before,
.nav-menu a,
.home-btn a {
  font-family: "Lobster", "NewClearMincho", serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

/* 英字の装飾・ラベル */
.site-title::after,
.nav-menu::before,
.nav-menu a::before,
.main-visual::before,
.main-visual::after,
.about::before,
.creators::before,
.creator p::before,
.tall-left::after,
.link-middle a:first-child::after,
.slim-right::after,
.link-middle a:nth-child(2)::before,
.link-middle a:nth-child(2)::after,
footer {
  font-family: "Lobster", "NewClearMincho", serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

/* 日本語本文は読みやすさを維持 */
.about p,
.creator p {
  font-family: "Lobster", "NewClearMincho", serif;
}

footer {
  padding: 50px 20px;
  background: var(--blue);
  border-top: 4px double var(--ivory);
  color: white;
  font-family: "Lobster", "NewClearMincho", serif;
  font-size: 10px;
  letter-spacing: .15em;
  text-align: center;
}

.home-btn a::after {
  content: none;
}
