/* Tokyo Microclimate Observatory — handwritten stylesheet */
/* palette: concrete cream #F4F2EE, ink #1A1A1A, terracotta #C75B39, steel #5A6B7C, border #D0CCC5 */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: #F4F2EE;
  color: #1A1A1A;
  font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.72;
  padding-top: 64px;
}

h1, h2, h3, h4 {
  font-family: 'Literata', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
  color: #1A1A1A;
}

a {
  color: #1A1A1A;
  text-decoration: none;
}

a:hover {
  color: #A34A2E;
}

/* header — fixed observation deck bar */
.climate-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #F4F2EE;
  border-bottom: 1px solid #D0CCC5;
  z-index: 900;
  display: flex;
  align-items: center;
}

.climate-head .head-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-logo {
  font-family: 'Literata', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.4px;
  color: #1A1A1A !important;
  white-space: nowrap;
}

#site-logo:hover {
  color: #C75B39 !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #1A1A1A;
  letter-spacing: 0.2px;
}

.main-nav a:hover {
  color: #A34A2E;
}

.main-nav a.active-zone {
  color: #C75B39;
  border-bottom: 1px solid #C75B39;
}

#menu-toggle {
  display: none;
  background: none;
  border: 1px solid #D0CCC5;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: #1A1A1A;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 1px;
}

/* page body */
.page-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.page-kicker {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #5A6B7C;
  margin-bottom: 10px;
}

h1.page-title {
  font-size: 34px;
  margin-bottom: 18px;
  max-width: 820px;
}

.page-lede {
  font-size: 18px;
  color: #5A6B7C;
  max-width: 760px;
  margin-bottom: 36px;
}

/* svg zone map block */
.zone-wrap {
  background: #FFFFFF;
  border: 1px solid #D0CCC5;
  padding: 28px 20px 18px;
  margin-bottom: 48px;
}

.zone-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 860px;
  margin: 0 auto;
}

.map-note {
  font-size: 12px;
  color: #5A6B7C;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.3px;
}

/* current conditions row */
.cond-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 0 0 56px;
}

.data-card {
  background: #FFFFFF;
  border: 1px solid #D0CCC5;
  border-top: 3px solid #5A6B7C;
  padding: 16px 14px 14px;
  min-height: 168px;
}

.data-card.zone-core { border-top-color: #C75B39; }
.data-card.zone-bay { border-top-color: #5A8FA8; }
.data-card.zone-tama { border-top-color: #6B8E5A; }
.data-card.zone-saitama { border-top-color: #B8A47C; }
.data-card.zone-boso { border-top-color: #8B7BA8; }

.data-card h3 {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #5A6B7C;
  margin-bottom: 4px;
}

.data-card .cond-city {
  font-family: 'Literata', Georgia, serif;
  font-size: 17px;
  margin-bottom: 8px;
}

.cond-temp {
  font-family: 'Literata', Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
  color: #1A1A1A !important;
}

.cond-lines {
  font-size: 12.5px;
  line-height: 1.65;
  color: #5A6B7C;
  margin-top: 8px;
}

.cond-lines span {
  display: block;
}

.cond-updating {
  color: #C75B39;
  font-style: italic;
}

/* single current conditions box on zone pages */
.obs-box {
  background: #FFFFFF;
  border: 1px solid #D0CCC5;
  border-left: 4px solid #C75B39;
  padding: 20px 22px;
  width: 100%;
}

.obs-box h2 {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5A6B7C;
  margin-bottom: 10px;
}

.obs-box .obs-temp {
  font-family: 'Literata', Georgia, serif;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 4px;
}

.obs-box .obs-sub {
  font-size: 13px;
  color: #5A6B7C;
}

.obs-grid {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.9;
}

.obs-grid b {
  font-weight: 500;
  color: #1A1A1A;
}

/* zone page top: photo left, obs box right */
.zone-top {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 52px;
}

.zone-photo {
  width: 60%;
  flex: 0 0 60%;
}

.zone-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #D0CCC5;
}

.zone-photo figcaption {
  font-size: 12px;
  color: #5A6B7C;
  margin-top: 8px;
  font-style: italic;
  font-family: 'Literata', Georgia, serif;
}

.zone-side {
  flex: 1;
  padding-top: 6px;
}

/* essay typography */
.essay {
  max-width: 780px;
}

.essay h2 {
  font-size: 25px;
  margin: 44px 0 14px;
}

.essay h2:first-child {
  margin-top: 0;
}

.essay h3 {
  font-size: 19px;
  font-style: italic;
  margin: 30px 0 10px;
}

.essay p {
  margin-bottom: 17px;
}

.essay ul {
  margin: 0 0 17px 22px;
}

.essay li {
  margin-bottom: 7px;
}

.essay table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 24px;
  font-size: 14px;
  background: #FFFFFF;
}

.essay th, .essay td {
  border: 1px solid #D0CCC5;
  padding: 8px 12px;
  text-align: left;
}

.essay th {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5A6B7C;
  background: #F4F2EE;
}

/* pull stat strip */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #D0CCC5;
  background: #FFFFFF;
  margin: 28px 0;
}

.stat-strip .stat-cell {
  flex: 1 1 160px;
  padding: 18px 20px;
  border-right: 1px solid #D0CCC5;
}

.stat-strip .stat-cell:last-child {
  border-right: none;
}

.stat-strip .stat-num {
  font-family: 'Literata', Georgia, serif;
  font-size: 27px;
  color: #C75B39;
}

.stat-strip .stat-cap {
  font-size: 12px;
  color: #5A6B7C;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* text link CTA — no buttons */
.obs-btn {
  font-family: 'Literata', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: #C75B39;
  display: inline-block;
  margin-top: 6px;
}

.obs-btn:hover {
  color: #A34A2E;
  text-decoration: underline;
}

.link-row {
  margin: 34px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

/* zone index cards */
.zone-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0 40px;
}

.zone-card {
  background: #FFFFFF;
  border: 1px solid #D0CCC5;
  padding: 20px 22px 16px;
}

.zone-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.zone-card p {
  font-size: 14px;
  color: #5A6B7C;
  margin-bottom: 8px;
}

.zone-chip {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: baseline;
}

/* heat matrix wrap */
.matrix-wrap {
  background: #FFFFFF;
  border: 1px solid #D0CCC5;
  padding: 28px 16px 20px;
  margin-bottom: 48px;
  overflow-x: auto;
}

.matrix-wrap svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
  max-width: 820px;
  margin: 0 auto;
}

/* contact form */
.contact-form {
  max-width: 560px;
  background: #FFFFFF;
  border: 1px solid #D0CCC5;
  padding: 30px 32px 34px;
}

.contact-form label {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #5A6B7C;
  margin: 20px 0 6px;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #D0CCC5;
  background: #F4F2EE;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: #1A1A1A;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 1px solid #C75B39;
  background: #FFFFFF;
}

.form-submit {
  margin-top: 26px;
  font-family: 'Literata', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #C75B39;
  background: none;
  border: none;
  border-bottom: 1px solid #C75B39;
  padding: 2px 0;
  cursor: pointer;
}

.form-submit:hover {
  color: #A34A2E;
  border-bottom-color: #A34A2E;
}

.contact-side-note {
  font-size: 13px;
  color: #5A6B7C;
  max-width: 560px;
  margin-top: 26px;
  line-height: 1.8;
}

/* address blocks */
.addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.addr-block {
  background: #FFFFFF;
  border: 1px solid #D0CCC5;
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.8;
}

.addr-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.addr-block a {
  color: #C75B39;
}

.addr-block a:hover {
  color: #A34A2E;
  text-decoration: underline;
}

/* corrections log */
.corr-entry {
  border-left: 3px solid #C75B39;
  padding: 4px 0 4px 18px;
  margin-bottom: 26px;
}

.corr-entry .corr-date {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #5A6B7C;
}

/* team */
.team-member {
  background: #FFFFFF;
  border: 1px solid #D0CCC5;
  padding: 24px 26px;
  margin-bottom: 18px;
}

.team-member h3 {
  font-size: 20px;
  margin-bottom: 2px;
}

.team-member .team-role {
  font-size: 12.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #C75B39;
  font-weight: 500;
  margin-bottom: 12px;
}

.team-member p {
  font-size: 15px;
}

/* cookie bar */
#cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1A1A1A;
  color: #E8E4DE;
  font-size: 13px;
  padding: 12px 24px;
  display: none;
  z-index: 950;
  border-top: 3px solid #C75B39;
}

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

#cookie-bar a.cookie-link {
  color: #E8E4DE;
  font-family: 'Literata', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  margin-left: 20px;
  cursor: pointer;
  border-bottom: 1px solid #E8E4DE;
}

#cookie-bar a.cookie-link:hover {
  color: #C75B39;
  border-bottom-color: #C75B39;
}

/* footer */
.site-foot {
  background: #1A1A1A;
  border-top: 3px solid #C75B39;
  color: #E8E4DE;
  margin-top: 0;
}

.foot-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 24px 34px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.foot-inner h4 {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E8E4DE;
  margin-bottom: 14px;
}

.foot-inner p, .foot-inner a {
  font-size: 13.5px;
  color: #E8E4DE;
  line-height: 1.8;
}

.foot-inner a {
  display: block;
}

.foot-inner a:hover {
  color: #C75B39 !important;
}

.foot-base {
  border-top: 1px solid #3a3a3a;
  padding: 16px 24px 20px;
  max-width: 1160px;
  margin: 0 auto;
  font-size: 12px;
  color: #8f8b84;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* thanks page */
.thanks-box {
  background: #FFFFFF;
  border: 1px solid #D0CCC5;
  border-left: 4px solid #6B8E5A;
  padding: 34px 36px;
  max-width: 620px;
}

.thanks-box h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

/* misc */
.divider-rule {
  border: none;
  border-top: 1px solid #D0CCC5;
  margin: 46px 0;
}

.small-note {
  font-size: 12.5px;
  color: #5A6B7C;
  margin-top: 22px;
}

/* responsive */
@media (max-width: 980px) {
  .cond-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .zone-top {
    flex-direction: column;
  }

  .zone-photo {
    width: 100%;
    flex: none;
  }

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

@media (max-width: 720px) {
  #menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #F4F2EE;
    border-bottom: 1px solid #D0CCC5;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 14px;
  }

  .main-nav.nav-open {
    display: flex !important;
  }

  .main-nav a {
    padding: 9px 0;
    font-size: 15px;
    border-bottom: 1px solid #eceae4;
    width: 100%;
  }

  .cond-row {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .foot-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  h1.page-title {
    font-size: 27px;
  }
}
