@import url("/assets/shared/common.css");

:root {
  --paper: #ebe5cf;
  --paper-light: #f7f2df;
  --ink: #161c31;
  --muted: #596071;
  --accent: #ff6b35;
  --accent-dark: #d94b1c;
  --teal: #2457f5;
  --blue: #2457f5;
  --lime: #c7ff3d;
  --line: #bfc0b5;
  --white: #fffdf4;
  --shadow: 14px 14px 0 rgba(22, 28, 49, 0.95);
  --radius: 18px;
}

body {
  background:
    linear-gradient(rgba(22, 28, 49, 0.045) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--paper-light);
}

h1,
h2 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.site-header {
  position: sticky;
  top: 0;
  color: var(--paper-light);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(22, 28, 49, 0.97);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand span {
  color: var(--lime);
}

.nav-list a {
  color: #e5e7ef;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-list a:hover {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.08);
}

.nav-list a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36, 87, 245, 0.08) 1px, transparent 1px) 0 0 / 36px 100%,
    var(--paper-light);
}

.hero::before {
  position: absolute;
  top: 4rem;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  color: var(--blue);
}

.hero-title {
  max-width: 9.5ch;
  margin: 0;
  font-size: clamp(3.7rem, 7.5vw, 7.2rem);
}

.hero-title span {
  display: block;
}

.hero-title .marker {
  position: relative;
  z-index: 0;
  width: fit-content;
}

.hero-title .marker::after {
  position: absolute;
  right: -0.08em;
  bottom: 0.05em;
  left: -0.08em;
  z-index: -1;
  height: 0.28em;
  transform: rotate(-2deg);
  background: var(--lime);
  content: "";
}

.hero-lead {
  max-width: 59ch;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero .button-primary {
  color: var(--paper-light);
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--ink);
}

.hero .button-secondary {
  border-radius: 10px;
  background: var(--white);
}

.hero-art {
  position: relative;
  z-index: 1;
}

.hero-art img {
  transform: rotate(1.8deg);
  filter: drop-shadow(18px 22px 0 rgba(22, 28, 49, 0.18));
}

.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 9rem;
  height: 9rem;
  padding: 1rem;
  transform: rotate(-9deg);
  color: var(--ink);
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.sticker-one {
  right: -1rem;
  bottom: 1rem;
}

.manifesto {
  color: var(--paper-light);
  border-block: 5px solid var(--ink);
  background: var(--blue);
}

.manifesto-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding-block: 1.1rem;
}

.manifesto strong {
  color: var(--lime);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  text-transform: uppercase;
}

.manifesto span {
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.manifesto em {
  font-family: "Lora", serif;
  font-size: 1.15rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
  margin-bottom: 3rem;
}

.section-heading h2,
.rule-copy h2,
.lab-copy h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
}

.section-heading > p,
.rule-copy > p:last-child,
.lab-copy > p:last-child {
  color: var(--muted);
}

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

.path-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 9px 9px 0 var(--ink);
}

.path-card:nth-child(2) {
  transform: translateY(1.7rem) rotate(0.8deg);
}

.path-card:nth-child(3) {
  transform: rotate(-0.9deg);
}

.path-card img {
  width: 100%;
  aspect-ratio: 1.27 / 1;
  object-fit: cover;
  border-bottom: 4px solid var(--ink);
}

.path-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.path-copy > span {
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: 0.55rem 0;
  font-size: 1.45rem;
}

.path-card p {
  margin: 0;
  color: var(--muted);
}

.path-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--blue);
  font-weight: 800;
  text-underline-offset: 0.25rem;
}

.hobby-section {
  color: var(--paper-light);
  background: var(--ink);
}

.hobby-section .eyebrow {
  color: var(--lime);
}

.hobby-section .section-heading > p {
  color: #bec3d2;
}

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

.hobby-grid article {
  min-height: 210px;
  padding: 1.2rem;
  color: var(--ink);
  border: 2px solid var(--paper-light);
  border-radius: 18px;
  background: var(--lime);
}

.hobby-grid article:nth-child(2),
.hobby-grid article:nth-child(5) {
  color: var(--paper-light);
  background: var(--blue);
}

.hobby-grid article:nth-child(3),
.hobby-grid article:nth-child(6) {
  background: var(--accent);
}

.hobby-grid strong {
  display: block;
  font-size: 2rem;
}

.hobby-grid h3 {
  margin: 2.7rem 0 0.4rem;
  font-size: 1rem;
}

.hobby-grid p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.rule-section {
  background: var(--paper);
}

.rule-layout,
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.rule-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1rem;
  padding: 1.15rem;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
}

.rule-list strong {
  color: var(--blue);
  font-size: 1.3rem;
}

.rule-list span {
  color: var(--muted);
}

.lab-section {
  background: var(--lime);
}

.lab-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1.2rem;
  border: 4px solid var(--ink);
  border-radius: 26px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.lab-board article {
  min-height: 175px;
  padding: 1.2rem;
  border: 2px dashed var(--ink);
  border-radius: 14px;
}

.lab-board h3 {
  margin: 0 0 0.45rem;
}

.lab-board p {
  margin: 0;
  color: var(--muted);
}

.cooperation-summary {
  color: var(--paper-light);
  border-top: 5px solid var(--ink);
  background: var(--blue);
}

.cooperation-panel .eyebrow {
  color: var(--lime);
}

.cooperation-panel .button-primary {
  color: var(--ink);
  border-color: var(--ink);
  border-radius: 10px;
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
}

.cooperation-panel .button-secondary {
  border-radius: 10px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--paper-light);
  border-bottom: 5px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(199, 255, 61, 0.08) 1px, transparent 1px) 0 0 / 40px 100%,
    var(--blue);
}

.page-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  transform: rotate(20deg);
  border: 4rem solid var(--accent);
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--lime);
}

.page-hero p:last-child {
  color: #dce2ff;
}

.content-page {
  background:
    linear-gradient(rgba(22, 28, 49, 0.045) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--paper-light);
}

.content-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.content-visual {
  position: sticky;
  top: 7rem;
  align-self: start;
  margin: 0;
}

.content-visual img {
  width: 100%;
  transform: rotate(-1.2deg);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 10px 10px 0 var(--ink);
}

.content-visual figcaption {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.content-copy > p:first-of-type {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-copy h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.content-copy h3 {
  margin-top: 2.2rem;
  font-size: 1.35rem;
}

.checklist {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 1rem 1rem 1rem 3.3rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
}

.checklist li::before {
  position: absolute;
  top: 0.85rem;
  left: 0.95rem;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
  content: "✓";
}

.notebook-note {
  margin: 2.2rem 0;
  padding: 1.3rem 1.5rem;
  transform: rotate(-0.5deg);
  border: 3px solid var(--ink);
  background: var(--lime);
  box-shadow: 7px 7px 0 var(--ink);
}

.notebook-note strong {
  color: var(--blue);
}

.article-aside,
.contact-note,
.contact-panel {
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 7px 7px 0 var(--ink);
}

.contact-address {
  color: var(--blue);
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
}

.simple-page .button {
  border-radius: 10px;
}

.site-footer {
  color: #e1e4ed;
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--ink);
}

.site-footer .footer-main p,
.site-footer .footer-links a,
.site-footer .footer-bottom,
.site-footer .footer-bottom a {
  color: #abb1c2;
}

.site-footer .footer-bottom {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .hero-grid,
  .section-heading,
  .rule-layout,
  .lab-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-art {
    width: min(100%, 720px);
    margin-inline: auto;
  }

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

  .path-card,
  .path-card:nth-child(2),
  .path-card:nth-child(3) {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    transform: none;
  }

  .path-card img {
    height: 100%;
    aspect-ratio: auto;
    border-right: 4px solid var(--ink);
    border-bottom: 0;
  }

  .hobby-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-visual {
    position: static;
    width: min(100%, 560px);
  }
}

@media (max-width: 680px) {
  .hero::before {
    top: auto;
    right: -9rem;
    bottom: 2rem;
  }

  .hero-title {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .hero-art img {
    filter: drop-shadow(8px 10px 0 rgba(22, 28, 49, 0.18));
  }

  .sticker {
    right: 0;
    width: 7.5rem;
    height: 7.5rem;
    font-size: 0.7rem;
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
  }

  .manifesto-inner > span {
    display: none;
  }

  .path-card,
  .path-card:nth-child(2),
  .path-card:nth-child(3) {
    display: flex;
  }

  .path-card img {
    height: auto;
    aspect-ratio: 1.27 / 1;
    border-right: 0;
    border-bottom: 4px solid var(--ink);
  }

  .hobby-grid,
  .lab-board {
    grid-template-columns: 1fr;
  }

  .hobby-grid article {
    min-height: 160px;
  }

  .hobby-grid h3 {
    margin-top: 1.5rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-art img,
  .sticker,
  .path-card,
  .content-visual img,
  .notebook-note {
    transform: none;
  }
}
