/* Fuji Skyline — Tokyo Microclimate Weather Map */
/* Handwritten CSS — no framework, no utilities */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: #212121;
  background-color: #FAFAFA;
  line-height: 1.6;
  font-size: 16px;
}

/* === HEADER === */
.head-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FAFAFA;
  border-bottom: 1px solid #E0E0E0;
  z-index: 1000;
  padding: 0 24px;
}

.head-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo-text {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 3px;
  color: #212121;
  text-decoration: none;
}

.logo-text:hover {
  color: #FF5722;
}

/* === NAVIGATION === */
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #212121;
  text-decoration: none;
}

.nav-links a:hover {
  color: #FF5722;
  text-decoration: underline;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #212121;
  margin: 5px 0;
}

/* === MAIN CONTENT === */
.main-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px 24px;
}

.main-wrap-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 60px 24px;
}

/* === SVG DOT MAP === */
.map-section {
  text-align: center;
  margin-bottom: 48px;
}

.map-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 28px;
  color: #212121;
  margin-bottom: 8px;
}

.map-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #757575;
  margin-bottom: 32px;
}

.dot-map-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.ward-dot {
  cursor: pointer;
  transition: r 0.3s ease;
}

.ward-dot:hover {
  stroke: #212121;
  stroke-width: 2px;
}

.ward-label {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 10px;
  fill: #212121;
  text-anchor: middle;
  pointer-events: none;
}

.temp-label {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  fill: #FFFFFF;
  text-anchor: middle;
  pointer-events: none;
}

/* === LEGEND === */
.legend-box {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #757575;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* === INTRO SECTION === */
.intro-section {
  margin-bottom: 48px;
}

.intro-section h2 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  color: #212121;
  margin-bottom: 16px;
}

.intro-section p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #212121;
  margin-bottom: 14px;
  line-height: 1.7;
}

/* === WARD TABLE === */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 48px;
}

.ward-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}

.ward-table th {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #212121;
  color: #212121;
  background-color: #FFFFFF;
}

.ward-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #E0E0E0;
  color: #212121;
}

.ward-table tr:hover td {
  background-color: #FFFFFF;
}

.temp-read {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 14px;
}

.humid-read {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 13px;
  color: #757575;
}

/* === WARD PAGE CURRENT CONDITIONS BOX === */
.current-box {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  padding: 24px;
  margin-bottom: 40px;
}

.current-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.current-item {
  text-align: left;
}

.current-label {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.current-value {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 28px;
  color: #212121;
}

.current-unit {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  color: #757575;
}

/* === ESSAY / ARTICLE CONTENT === */
.essay-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.essay-wrap h1 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 26px;
  color: #212121;
  margin-bottom: 8px;
  line-height: 1.3;
}

.essay-wrap .essay-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #757575;
  margin-bottom: 32px;
}

.essay-wrap h2 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  color: #212121;
  margin-top: 36px;
  margin-bottom: 14px;
}

.essay-wrap h3 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  color: #212121;
  margin-top: 28px;
  margin-bottom: 10px;
}

.essay-wrap p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #212121;
  margin-bottom: 16px;
  line-height: 1.7;
}

.essay-wrap a {
  color: #FF5722;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  text-decoration: underline;
}

.essay-wrap a:hover {
  color: #BF360C;
}

/* === THERMAL SPOT MARKERS === */
.thermal-spot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: middle;
}

.thermal-cold {
  background-color: #29B6F6;
}

.thermal-mild {
  background-color: #FFEE58;
}

.thermal-hot {
  background-color: #EF5350;
}

/* === CHART BOX (for data visualizations) === */
.chart-box {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  padding: 24px;
  margin: 24px 0;
}

.chart-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  color: #212121;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

/* === CTA LINKS === */
.cta-link {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  color: #FF5722;
  text-decoration: none;
}

.cta-link:hover {
  color: #BF360C;
  text-decoration: underline;
}

/* === PAGE HEADER === */
.page-head {
  margin-bottom: 36px;
}

.page-head h1 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 24px;
  color: #212121;
  margin-bottom: 6px;
}

.page-head p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #757575;
}

/* === CONTACT FORM === */
.form-wrap {
  max-width: 500px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  color: #212121;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #212121;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #FF5722;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  color: #FF5722;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.form-submit:hover {
  color: #BF360C;
}

/* === THANKS PAGE === */
.thanks-box {
  text-align: center;
  padding: 60px 24px;
}

.thanks-box h1 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 24px;
  color: #212121;
  margin-bottom: 12px;
}

.thanks-box p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #757575;
  margin-bottom: 24px;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #212121;
  color: #BDBDBD;
  padding: 14px 24px;
  z-index: 2000;
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-banner a {
  color: #FF5722;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 12px;
}

.cookie-banner a:hover {
  color: #BF360C;
}

/* === FOOTER === */
.site-footer {
  background-color: #212121;
  border-top: 2px solid #FF5722;
  padding: 48px 24px 32px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h4 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #BDBDBD;
  text-decoration: none;
  line-height: 1.8;
  display: block;
}

.footer-col a:hover {
  color: #FF5722;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid #424242;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #757575;
}

/* === UTILITY === */
.text-center {
  text-align: center !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-32 {
  margin-top: 32px;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background-color: #FAFAFA;
    border-bottom: 1px solid #E0E0E0;
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid #E0E0E0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
  }

  .mobile-toggle {
    display: block;
  }

  .main-wrap,
  .main-wrap-wide {
    padding: 72px 16px 40px 16px;
  }

  .current-grid {
    gap: 24px;
  }

  .current-value {
    font-size: 24px;
  }

  .map-title {
    font-size: 22px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .essay-wrap h1 {
    font-size: 22px;
  }
}
