/* =========================================================
   IAC.co.jp — Internet Access Center
   Site CSS
   Theme: archival, cinematic, personal-history, early internet
   ========================================================= */

:root {
  --bg: #0b0b0a;
  --bg-soft: #14120f;
  --bg-paper: #f4ead8;
  --bg-paper-soft: #fff7e8;

  --ink: #12100d;
  --ink-soft: #312b24;
  --muted: #766a5d;

  --white: #fffaf0;
  --cream: #f7ead4;
  --gold: #d5a84f;
  --gold-soft: #f1d596;
  --red: #9d1f19;
  --red-bright: #c42a20;
  --blue-black: #101924;

  --line: rgba(255, 250, 240, 0.16);
  --line-dark: rgba(18, 16, 13, 0.16);

  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.24);

  --max: 1180px;
  --radius: 26px;
  --radius-sm: 16px;

  --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

/* =========================================================
   Base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 5%, rgba(213, 168, 79, 0.13), transparent 36rem),
    radial-gradient(circle at 80% 14%, rgba(157, 31, 25, 0.15), transparent 34rem),
    linear-gradient(180deg, #090908 0%, #12100d 45%, #090908 100%);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold-soft);
}

p {
  margin: 0 0 1.1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 8.2rem);
}

h2 {
  font-size: clamp(2.15rem, 5vw, 5.2rem);
}

h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.4rem);
}

h4 {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* =========================================================
   Utility
   ========================================================= */

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(850px, calc(100% - 40px));
  margin-inline: auto;
}

.wide {
  width: min(1380px, calc(100% - 32px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.8rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.lead {
  color: rgba(255, 250, 240, 0.88);
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.1vw, 1.75rem);
  line-height: 1.62;
  letter-spacing: -0.012em;
}

.kicker {
  color: var(--gold-soft);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.muted {
  color: rgba(255, 250, 240, 0.68);
}

.paper-text {
  color: var(--ink-soft);
}

.red {
  color: var(--red-bright);
}

.gold {
  color: var(--gold-soft);
}

.center {
  text-align: center;
}

.spacer {
  height: clamp(3rem, 8vw, 7rem);
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
  background: rgba(9, 9, 8, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1380px, calc(100% - 32px));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(213, 168, 79, 0.55);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 4px rgba(213, 168, 79, 0.07);
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  color: rgba(255, 250, 240, 0.64);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--gold-soft);
}

.nav-cta {
  border: 1px solid rgba(255, 250, 240, 0.22);
  background: rgba(255, 250, 240, 0.06);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(4, 4, 3, 0.93) 0%, rgba(8, 7, 6, 0.72) 42%, rgba(8, 7, 6, 0.2) 100%),
    linear-gradient(0deg, rgba(9, 9, 8, 0.96) 0%, transparent 34%, rgba(9, 9, 8, 0.2) 100%);
}

.hero.has-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 30% 18%, rgba(213, 168, 79, 0.18), transparent 36rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-title {
  max-width: 920px;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.75);
}

.hero-title .small {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold-soft);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
}

.hero-lead {
  max-width: 760px;
  margin-top: 1.5rem;
  color: rgba(255, 250, 240, 0.9);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.58;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-note {
  max-width: 720px;
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--red-bright);
  color: rgba(255, 250, 240, 0.76);
}

/* =========================================================
   Buttons
   ========================================================= */

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.18rem;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.btn:hover {
  transform: translateY(-2px);
  color: var(--ink);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
}

.button.primary,
.btn.primary {
  color: var(--ink);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
}

.button.primary:hover,
.btn.primary:hover {
  background: var(--white);
}

.button.red,
.btn.red {
  color: var(--white);
  border-color: rgba(196, 42, 32, 0.8);
  background: var(--red);
}

.button.red:hover,
.btn.red:hover {
  color: var(--white);
  background: var(--red-bright);
}

/* =========================================================
   Sections
   ========================================================= */

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.section-tight {
  padding: clamp(2.8rem, 6vw, 5rem) 0;
}

.section-dark {
  background:
    radial-gradient(circle at 88% 12%, rgba(157, 31, 25, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(255, 250, 240, 0.035), rgba(255, 250, 240, 0.015));
}

.section-paper {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(157, 31, 25, 0.08), transparent 32rem),
    linear-gradient(180deg, var(--bg-paper-soft), var(--bg-paper));
}

.section-paper .eyebrow {
  color: var(--red);
}

.section-paper .lead {
  color: var(--ink-soft);
  text-shadow: none;
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading.center {
  margin-inline: auto;
}

.section-heading p {
  margin-top: 1rem;
  color: rgba(255, 250, 240, 0.7);
}

.section-paper .section-heading p,
.section-paper p {
  color: var(--ink-soft);
}

/* =========================================================
   Story Blocks
   ========================================================= */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.story-grid.reverse {
  grid-template-columns: minmax(320px, 0.98fr) minmax(0, 1.02fr);
}

.story-grid.reverse .story-image {
  order: -1;
}

.story-copy h2 {
  margin-bottom: 1.1rem;
}

.story-copy p {
  color: rgba(255, 250, 240, 0.76);
}

.section-paper .story-copy p {
  color: var(--ink-soft);
}

.story-image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 250, 240, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.06);
  box-shadow: var(--shadow);
}

.section-paper .story-image {
  border-color: rgba(18, 16, 13, 0.13);
}

.story-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 20% 10%, rgba(255, 250, 240, 0.16), transparent 18rem);
}

.caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 16px;
  color: rgba(255, 250, 240, 0.86);
  background: rgba(9, 9, 8, 0.58);
  backdrop-filter: blur(12px);
  font-size: 0.84rem;
}

/* =========================================================
   Cards
   ========================================================= */

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

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.075), rgba(255, 250, 240, 0.035));
  box-shadow: var(--shadow-soft);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  opacity: 0.8;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: rgba(255, 250, 240, 0.72);
}

.card a {
  font-weight: 800;
  text-decoration: none;
}

.card.paper {
  color: var(--ink);
  border-color: rgba(18, 16, 13, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(244, 234, 216, 0.94));
}

.card.paper p {
  color: var(--ink-soft);
}

/* Image cards */

.image-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius);
  background: #18130f;
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.image-card:hover img {
  transform: scale(1.045);
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 15% 12%, rgba(213, 168, 79, 0.22), transparent 18rem);
}

.image-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.35rem;
}

.image-card-content h3 {
  color: var(--white);
}

.image-card-content p {
  color: rgba(255, 250, 240, 0.78);
}

/* =========================================================
   Timeline
   ========================================================= */

.timeline {
  position: relative;
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.1rem;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(255, 250, 240, 0.05));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1rem;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(213, 168, 79, 0.7);
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.timeline-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.055);
}

.timeline-card h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.timeline-card p {
  color: rgba(255, 250, 240, 0.72);
}

.timeline-year {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================
   Quote / Thesis Blocks
   ========================================================= */

.quote-block {
  position: relative;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(213, 168, 79, 0.26);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 0%, rgba(213, 168, 79, 0.16), transparent 25rem),
    linear-gradient(180deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.035));
  box-shadow: var(--shadow);
}

.quote-block::before {
  content: "“";
  position: absolute;
  top: -0.45rem;
  left: 1.5rem;
  color: rgba(213, 168, 79, 0.38);
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 12rem);
  line-height: 1;
}

.quote-block blockquote {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.6vw, 3.7rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.quote-block cite {
  display: block;
  margin-top: 1.25rem;
  color: rgba(255, 250, 240, 0.66);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-paper .quote-block {
  border-color: rgba(157, 31, 25, 0.22);
  background:
    radial-gradient(circle at 10% 0%, rgba(157, 31, 25, 0.09), transparent 25rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(244, 234, 216, 0.8));
  box-shadow: 0 20px 70px rgba(18, 16, 13, 0.16);
}

.section-paper .quote-block blockquote {
  color: var(--ink);
}

.section-paper .quote-block cite {
  color: var(--muted);
}

/* =========================================================
   Archive / Document Style
   ========================================================= */

.archive-box {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border: 1px solid rgba(18, 16, 13, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(244, 234, 216, 0.94)),
    repeating-linear-gradient(
      0deg,
      rgba(18, 16, 13, 0.035) 0,
      rgba(18, 16, 13, 0.035) 1px,
      transparent 1px,
      transparent 34px
    );
  box-shadow: 0 22px 60px rgba(18, 16, 13, 0.2);
}

.archive-box::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 82px;
  height: 82px;
  border: 3px solid rgba(157, 31, 25, 0.5);
  border-radius: 50%;
  transform: rotate(-12deg);
  opacity: 0.56;
}

.archive-box h2,
.archive-box h3 {
  color: var(--ink);
}

.archive-box p {
  color: var(--ink-soft);
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.archive-meta span {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(18, 16, 13, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.38);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   Feature / Article Pages
   ========================================================= */

.article-hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
}

.article-title {
  max-width: 980px;
}

.article-subtitle {
  max-width: 780px;
  margin-top: 1.25rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.article-body {
  color: rgba(255, 250, 240, 0.83);
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
}

.article-body > p:first-of-type {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.58;
}

.article-body h2 {
  margin: 3.2rem 0 1rem;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.article-body h3 {
  margin: 2.2rem 0 0.8rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
}

.article-body li {
  margin-bottom: 0.55rem;
}

.article-body img {
  margin: 2rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-aside {
  position: sticky;
  top: 96px;
  padding: 1rem;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.055);
}

.article-aside h3 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.article-aside a {
  display: block;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 250, 240, 0.1);
  color: rgba(255, 250, 240, 0.76);
  text-decoration: none;
  font-weight: 750;
}

.article-aside a:hover {
  color: var(--gold-soft);
}

/* =========================================================
   Gallery
   ========================================================= */

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

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.04);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
  filter: brightness(1.06);
}

.gallery-item figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  color: rgba(255, 250, 240, 0.88);
  background: rgba(9, 9, 8, 0.68);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
}

/* Optional lightbox support */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.lightbox button {
  position: absolute;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 250, 240, 0.12);
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 50px;
  height: 70px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

/* =========================================================
   Link Lists / Sitemap
   ========================================================= */

.link-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.link-panel {
  padding: 1.25rem;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.055);
}

.link-panel h3 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.link-panel a {
  display: block;
  padding: 0.45rem 0;
  color: rgba(255, 250, 240, 0.74);
  text-decoration: none;
}

.link-panel a:hover {
  color: var(--gold-soft);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: clamp(3rem, 7vw, 6rem) 0 2rem;
  border-top: 1px solid rgba(255, 250, 240, 0.12);
  background:
    radial-gradient(circle at 20% 0%, rgba(213, 168, 79, 0.11), transparent 28rem),
    #080807;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.footer-brand {
  max-width: 520px;
}

.footer-brand h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

.footer-brand p {
  color: rgba(255, 250, 240, 0.72);
}

.footer-links h3 {
  margin-bottom: 0.8rem;
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 0.34rem 0;
  color: rgba(255, 250, 240, 0.68);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 250, 240, 0.1);
  color: rgba(255, 250, 240, 0.52);
  font-size: 0.85rem;
}

/* =========================================================
   Forms / Contact
   ========================================================= */

.contact-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 0%, rgba(213, 168, 79, 0.14), transparent 20rem),
    rgba(255, 250, 240, 0.055);
  box-shadow: var(--shadow-soft);
}

.contact-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-label {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1040px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .story-grid,
  .story-grid.reverse,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .story-grid.reverse .story-image {
    order: 0;
  }

  .article-aside {
    position: static;
  }

  .card-grid,
  .card-grid.two,
  .gallery-grid,
  .link-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .narrow,
  .wide,
  .hero-content,
  .nav {
    width: min(100% - 28px, var(--max));
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links a {
    text-align: center;
    border: 1px solid rgba(255, 250, 240, 0.1);
    background: rgba(255, 250, 240, 0.045);
  }

  .hero {
    min-height: 82vh;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(4, 4, 3, 0.96) 0%, rgba(8, 7, 6, 0.78) 100%),
      linear-gradient(0deg, rgba(9, 9, 8, 0.96) 0%, transparent 34%, rgba(9, 9, 8, 0.35) 100%);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .btn {
    width: 100%;
  }

  .card-grid,
  .card-grid.two,
  .gallery-grid,
  .link-wall {
    grid-template-columns: 1fr;
  }

  .story-image,
  .story-image img,
  .image-card,
  .image-card img {
    min-height: 320px;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 280px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 62px);
  }

  .lightbox-next {
    right: calc(50% - 62px);
  }
}

@media (max-width: 420px) {
  .nav-links {
    grid-template-columns: 1fr;
  }

  .quote-block {
    padding: 1.5rem;
  }

  .archive-box::after {
    width: 58px;
    height: 58px;
  }
}

/* =========================================================
   Print
   ========================================================= */

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .site-header,
  .site-footer,
  .hero-actions,
  .article-aside {
    display: none;
  }

  .hero,
  .section,
  .article-hero {
    min-height: auto;
    padding: 1rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
