/* === Ama Sora — Tokyo Bay Sea Breeze Observatory === */
/* Handwritten CSS. No framework. No utilities. */

@import url('https://fonts.googleapis.com/css2?family=Literata:ital,wght@0,400;0,600;1,400;1,600&family=Figtree:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  color: #1C2F28;
  background-color: #EEF2F0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #E27D60;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #C25A3E;
  text-decoration: underline;
}

/* === TYPOGRAPHY === */

.sora-head {
  font-family: 'Literata', serif;
  font-weight: 600;
  color: #1C2F28;
  line-height: 1.3;
}

.sora-head-italic {
  font-family: 'Literata', serif;
  font-weight: 400;
  font-style: italic;
  color: #1C2F28;
  line-height: 1.3;
}

h1.sora-head {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

h2.sora-head {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3.sora-head {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

h4.sora-head {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #1C2F28;
}

p.secondary {
  color: #4A6358;
  font-size: 0.95rem;
}

/* === HEADER === */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #EEF2F0;
  border-bottom: 1px solid #C8D5CE;
  z-index: 1000;
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Literata', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 1.4rem;
  color: #1C2F28;
  text-decoration: none;
}

.logo:hover {
  color: #E27D60;
  text-decoration: none;
}

/* === NAVIGATION === */

#main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#main-nav a {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: #1C2F28;
  text-decoration: none;
  position: relative;
}

#main-nav a:hover {
  color: #E27D60;
  text-decoration: none;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #E27D60;
  transition: width 0.25s ease;
}

#main-nav a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

#menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1C2F28;
  margin: 5px 0;
  transition: 0.3s;
}

/* === MAIN LAYOUT === */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 2rem 4rem;
  min-height: 80vh;
}

main.wide-main {
  max-width: 900px;
}

/* === FRONT MAP SECTION (index only) === */

.front-map-section {
  margin-top: -32px;
  margin-bottom: 3rem;
}

.front-map-title {
  font-family: 'Literata', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.1rem;
  color: #1C2F28;
  margin-bottom: 1rem;
  text-align: center;
}

.front-map-wrap {
  background-color: #FFFFFF;
  border: 1px solid #C8D5CE;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

#breeze-front-map {
  width: 100%;
  max-width: 700px;
  height: auto;
}

/* === CONTENT SECTION === */

.content-section {
  margin-bottom: 3rem;
}

/* === CARD === */

.front-card {
  background-color: #FFFFFF;
  border: 1px solid #C8D5CE;
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.front-card h2 {
  margin-top: 0;
}

/* === WEATHER BOX === */

.weather-box {
  background-color: #FFFFFF;
  border: 1px solid #C8D5CE;
  border-left: 4px solid #E27D60;
  border-radius: 0 6px 6px 0;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.weather-box h3 {
  font-family: 'Literata', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  color: #1C2F28;
  margin-bottom: 1rem;
  margin-top: 0;
}

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

.weather-item {
  text-align: center;
  padding: 0.75rem;
  background-color: #F0F4F1;
  border-radius: 4px;
}

.weather-label {
  font-size: 0.75rem;
  color: #4A6358;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.weather-value {
  font-family: 'Literata', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: #1C2F28;
}

.weather-unit {
  font-size: 0.8rem;
  color: #4A6358;
}

/* === COASTAL IMAGE LAYOUT === */

.breeze-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.coastal-img {
  width: 60%;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #C8D5CE;
}

.coastal-img img {
  width: 100%;
  border-radius: 6px;
}

.coastal-side {
  width: 40%;
  flex-shrink: 0;
}

/* === PROFILE CHART SECTION === */

.profile-section {
  margin: 3rem 0;
}

.profile-title {
  font-family: 'Literata', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.1rem;
  color: #1C2F28;
  margin-bottom: 1rem;
  text-align: center;
}

.profile-wrap {
  background-color: #FFFFFF;
  border: 1px solid #C8D5CE;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

#temp-profile-chart {
  width: 100%;
  max-width: 700px;
  height: auto;
}

/* === CONTACT FORM === */

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #1C2F28;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #C8D5CE;
  border-radius: 4px;
  background-color: #FFFFFF;
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  color: #1C2F28;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #E27D60;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.tide-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: #E27D60;
  color: #FFFFFF;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tide-btn:hover {
  background-color: #C25A3E;
  text-decoration: none;
}

/* === THANKS PAGE === */

.thanks-box {
  text-align: center;
  padding: 4rem 2rem;
}

.thanks-box h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.thanks-box p {
  font-size: 1.1rem;
  color: #4A6358;
  margin-bottom: 2rem;
}

/* === COOKIE BANNER === */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1C2F28;
  color: #D4DDD8;
  padding: 1rem 2rem;
  z-index: 2000;
  display: none;
  border-top: 3px solid #E27D60;
}

#cookie-banner.show {
  display: block !important;
}

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

.cookie-text {
  font-size: 0.85rem;
  color: #D4DDD8;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-link {
  font-family: 'Literata', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 0.9rem;
  color: #E27D60;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.cookie-link:hover {
  color: #C25A3E;
  text-decoration: underline;
}

/* === FOOTER === */

#site-footer {
  background-color: #1C2F28;
  color: #D4DDD8;
  border-top: 3px solid #E27D60;
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: 'Literata', serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #D4DDD8;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #D4DDD8;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

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

.footer-col p {
  font-size: 0.85rem;
  color: #D4DDD8;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #4A6358;
  text-align: center;
  font-size: 0.8rem;
  color: #4A6358;
}

/* === LEGAL PAGE STYLES === */

.legal-page h2 {
  margin-top: 2.5rem;
}

.legal-page h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.legal-page ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* === UTILITY === */

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

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.1rem;
  color: #4A6358;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

hr.section-rule {
  border: none;
  border-top: 1px solid #C8D5CE;
  margin: 2.5rem 0;
}

/* === RESPONSIVE === */

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

  #main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #EEF2F0;
    border-bottom: 1px solid #C8D5CE;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
    display: none;
  }

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

  #main-nav a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  main {
    padding: 80px 1rem 3rem;
  }

  h1.sora-head {
    font-size: 1.7rem;
  }

  h2.sora-head {
    font-size: 1.3rem;
  }

  .header-inner {
    padding: 0 1rem;
  }

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

  .breeze-wrap {
    flex-direction: column;
  }

  .coastal-img {
    width: 100%;
  }

  .coastal-side {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .front-card {
    padding: 1.25rem;
  }
}
