:root {
  --ink: #1f2528;
  --paper: #f7fbf1;
  --aqua: #0f9aa8;
  --aqua-dark: #08717a;
  --yellow: #ffd24d;
  --red: #c7332a;
  --green: #4e9a3c;
  --orange: #e87425;
  --line: #265f63;
  --soft: #e6f4e0;
  --panel: #fffdf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
  background:
    repeating-linear-gradient(45deg, rgba(15, 154, 168, 0.12) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #d9f0ed 0%, #f8ffdb 44%, #dfe6e8 100%);
}

a {
  color: #005fa8;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: var(--red);
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 12px;
  color: #fff;
  background: var(--red);
}

.skip-link:focus {
  top: 12px;
}

.page-shell {
  width: min(1180px, calc(100% - 20px));
  margin: 10px auto 24px;
  border: 4px double var(--line);
  background: var(--paper);
  box-shadow: 0 0 0 4px #fff, 0 10px 28px rgba(0, 0, 0, 0.28);
}

.site-header {
  border-bottom: 3px solid var(--line);
  background: linear-gradient(180deg, #12aabc 0%, #8fe3df 42%, #fff06a 43%, #f5b13d 100%);
}

.retro-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(180deg, #363636, #111);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 20px 18px;
}

.kicker {
  margin: 0 0 5px;
  color: #17383b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.05;
  text-shadow: 2px 2px 0 #06616d, 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.subtitle {
  max-width: 620px;
  margin: 8px 0 0;
  color: #073c42;
  font-weight: 700;
}

.counter-box {
  min-width: 160px;
  padding: 8px;
  border: 2px inset #fefefe;
  color: #00ff66;
  text-align: center;
  background: #101010;
}

.counter-box span,
.counter-box small {
  display: block;
  color: #c7ffd9;
  font-size: 11px;
}

.counter-box strong {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 28px;
  line-height: 1.1;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--aqua-dark);
  background: linear-gradient(180deg, #fff9a8, #f28d2e);
}

.main-nav a {
  flex: 1 1 120px;
  padding: 10px 8px;
  border-right: 1px solid #b86313;
  color: #132a2c;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
  background: #fff;
}

.main-nav a.active {
  color: #fff;
  background: linear-gradient(180deg, var(--red), #84160f);
}

.news-ticker {
  display: block;
  padding: 6px 0;
  color: #fff;
  font-weight: 700;
  background: var(--red);
}

.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 230px;
  gap: 10px;
  padding: 10px;
}

.left-rail,
.right-rail,
.content-column {
  min-width: 0;
}

.module {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.module h2 {
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, var(--aqua), var(--aqua-dark));
}

.module h3 {
  margin: 0 0 7px;
  color: #78220f;
  font-size: 15px;
}

.module.compact {
  font-size: 13px;
}

.module.compact > :not(h2),
.module.wide > :not(h2) {
  margin-left: 10px;
  margin-right: 10px;
}

.module.compact > :last-child,
.module.wide > :last-child {
  margin-bottom: 10px;
}

.pixel-list {
  margin-top: 10px;
  padding-left: 18px;
}

.pixel-list li {
  margin: 0 0 7px;
}

.small-note {
  margin-top: 10px;
}

.radio-line {
  display: block;
  margin: 8px 0;
}

.small-button,
.calc-box button,
.tab-button {
  border: 1px solid #7a3e00;
  border-radius: 4px;
  color: #111;
  font-weight: 700;
  background: linear-gradient(180deg, #fff8a8, #f4b045);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.small-button {
  padding: 6px 9px;
}

.badge-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.badge-wall a {
  display: block;
  padding: 6px 3px;
  border: 1px solid #6b6b6b;
  color: #fff;
  font: 700 12px "Courier New", monospace;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(180deg, #e34037, #8f1515);
}

.ascii-map {
  overflow-x: auto;
  margin-top: 10px;
  padding: 8px;
  border: 1px dashed var(--line);
  color: #004d39;
  background: #f0ffe1;
  font: 12px "Courier New", monospace;
}

.feature-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffef1, #e2f6f1);
}

.feature-copy {
  padding: 16px 14px;
}

.feature-copy h2 {
  margin: 0 0 9px;
  color: #b21d17;
  font-size: 27px;
  line-height: 1.12;
}

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

.feature-strip img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  border-left: 1px solid var(--line);
}

.section-lead {
  color: #3f4d50;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.news-grid article,
.route-card,
.fish-grid article,
.recipe-row article {
  padding: 10px;
  border: 1px solid #b7b078;
  background: #fffbe0;
}

.news-grid time {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 5px;
  color: #fff;
  font-size: 12px;
  background: var(--green);
}

.spot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tab-button {
  padding: 8px 10px;
}

.tab-button.active {
  color: #fff;
  background: linear-gradient(180deg, var(--red), #81150e);
}

.spot-output {
  min-height: 135px;
  margin-top: 10px;
  padding: 12px;
  border: 2px inset #d8e6e2;
  background: #f3fff7;
}

.spot-output h3 {
  color: #0b6b72;
}

.spot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.spot-meta span {
  padding: 3px 6px;
  border: 1px solid #85a9a5;
  background: #fff;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.retro-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.retro-table caption {
  padding: 6px;
  color: #fff;
  font-weight: 700;
  background: var(--orange);
}

.retro-table th,
.retro-table td {
  padding: 8px;
  border: 1px solid #6f8c8c;
  vertical-align: top;
}

.retro-table th {
  color: #fff;
  background: var(--aqua-dark);
}

.retro-table tr:nth-child(even) td {
  background: var(--soft);
}

.fish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.fish-grid span {
  display: block;
  margin-top: 9px;
  padding: 5px;
  color: #123;
  font-size: 12px;
  background: #e8ffd8;
}

.gear-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  margin-top: 10px;
}

.check-list {
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 25px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #0f706a;
  color: var(--green);
  content: "✓";
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  background: #fff;
}

.calc-box {
  padding: 10px;
  border: 1px solid var(--line);
  background: #e7fff8;
}

.calc-box label,
.login-box label,
.guest-form label {
  display: block;
  margin-bottom: 8px;
}

.calc-box input,
.calc-box select,
.login-box input,
.guest-form input,
.guest-form textarea {
  width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid #789;
  border-radius: 3px;
  background: #fff;
}

.calc-box button {
  width: 100%;
  padding: 8px;
}

.calc-box output {
  display: block;
  min-height: 72px;
  margin-top: 9px;
  padding: 8px;
  border: 1px dashed #6b7c34;
  background: #fffde3;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.photo-grid figure {
  margin: 0;
  border: 1px solid #738d8f;
  background: #fff;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-grid figcaption {
  padding: 7px;
  color: #213;
  font-size: 12px;
  background: #f2f5d9;
}

.forum-board {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.forum-board article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid #99a;
  background: #fff;
}

.forum-board h3 {
  margin-bottom: 2px;
  color: #034a76;
}

.forum-board p {
  margin: 0;
  color: #555;
  font-size: 12px;
}

.forum-status {
  display: inline-block;
  padding: 4px 3px;
  border: 1px solid #555;
  color: #fff;
  font: 700 12px "Courier New", monospace;
  text-align: center;
  background: #4d6972;
}

.forum-status.hot {
  background: var(--red);
}

.forum-status.new {
  background: var(--green);
}

.recipe-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.weather-list {
  padding-left: 18px;
}

.ad-box {
  background: #fff7c2;
}

.blink {
  color: var(--red);
  font-weight: 700;
  animation: blinkText 1s steps(2, start) infinite;
}

@keyframes blinkText {
  50% {
    opacity: 0.25;
  }
}

.guest-form textarea {
  min-height: 78px;
  resize: vertical;
}

.guest-list {
  max-height: 190px;
  overflow-y: auto;
  padding: 7px;
  border: 1px inset #b6b6b6;
  background: #fff;
}

.guest-list p {
  margin: 0 0 8px;
  padding-bottom: 7px;
  border-bottom: 1px dotted #aaa;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-top: 3px solid var(--line);
  color: #f8fff0;
  background: linear-gradient(180deg, #313131, #101010);
}

.site-footer p {
  margin: 5px 0 0;
}

.site-footer a {
  display: block;
  margin-bottom: 6px;
  color: #ffe36a;
}

.inner-main {
  padding: 10px;
}

.breadcrumbs {
  margin: 0 0 10px;
  padding: 7px 9px;
  border: 1px solid #8aa4a5;
  color: #3d4b4d;
  font-size: 12px;
  background: #f5ffe8;
}

.inner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf1, #e7faf5);
}

.inner-hero > div {
  padding: 15px;
}

.inner-hero h2 {
  margin: 0 0 8px;
  color: #b21d17;
  font-size: 30px;
  line-height: 1.12;
}

.inner-hero img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  border-left: 1px solid var(--line);
}

.page-nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
  padding: 8px;
  border: 1px dashed #779;
  background: #fff7c2;
}

.page-nav-strip a {
  padding: 5px 8px;
  border: 1px solid #b96b18;
  color: #133;
  font-weight: 700;
  text-decoration: none;
  background: #fffef2;
}

.info-grid,
.directory-grid,
.gallery-extended,
.topic-grid,
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.info-card,
.directory-card,
.topic-card,
.warning-card,
.stamp-card {
  padding: 10px;
  border: 1px solid #b7b078;
  background: #fffbe0;
}

.info-card h3,
.directory-card h3,
.topic-card h3,
.warning-card h3,
.stamp-card h3 {
  margin-top: 0;
}

.notice-box {
  margin-top: 10px;
  padding: 10px;
  border: 2px dashed var(--red);
  color: #4a1b12;
  background: #fff4bd;
}

.route-timeline {
  margin: 10px;
  padding-left: 0;
  list-style: none;
}

.route-timeline li {
  position: relative;
  margin-bottom: 9px;
  padding: 9px 9px 9px 34px;
  border: 1px solid #aac2bc;
  background: #f3fff7;
}

.route-timeline li::before {
  position: absolute;
  left: 9px;
  top: 10px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line);
  content: "";
  background: var(--yellow);
}

.gallery-extended {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-extended figure {
  margin: 0;
  border: 1px solid #738d8f;
  background: #fff;
}

.gallery-extended img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-extended figcaption {
  min-height: 58px;
  padding: 7px;
  font-size: 12px;
  background: #f2f5d9;
}

.forum-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
}

.forum-table th,
.forum-table td {
  padding: 8px;
  border: 1px solid #8aa4a5;
  text-align: left;
  vertical-align: top;
}

.forum-table th {
  color: #fff;
  background: var(--aqua-dark);
}

.forum-table tr:nth-child(even) td {
  background: var(--soft);
}

.guest-wide {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.source-note {
  margin-top: 10px;
  padding: 8px;
  border-top: 1px dotted #777;
  color: #4f5a5c;
  font-size: 12px;
}

.stamp-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.stamp-card {
  text-align: center;
}

.stamp-card strong {
  display: block;
  color: var(--red);
  font: 700 24px "Courier New", monospace;
}

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

  .right-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .right-rail .module {
    margin-bottom: 0;
  }

  .feature-strip,
  .gear-layout,
  .inner-hero,
  .guest-wide {
    grid-template-columns: 1fr;
  }

  .feature-strip img {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .inner-hero img {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .info-grid,
  .directory-grid,
  .topic-grid,
  .safety-grid,
  .gallery-extended,
  .stamp-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 12px);
    margin-top: 6px;
  }

  .retro-toolbar,
  .brand-row,
  .site-footer {
    display: block;
  }

  .retro-toolbar span {
    display: block;
    margin-bottom: 3px;
  }

  h1 {
    font-size: 34px;
  }

  .counter-box {
    margin-top: 12px;
  }

  .layout,
  .right-rail {
    display: block;
  }

  .news-grid,
  .fish-grid,
  .photo-grid,
  .recipe-row,
  .route-grid,
  .info-grid,
  .directory-grid,
  .topic-grid,
  .safety-grid,
  .gallery-extended,
  .stamp-row {
    grid-template-columns: 1fr;
  }

  .feature-copy h2 {
    font-size: 23px;
  }
}

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

  .blink {
    animation: none;
  }
}
