@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Lato:wght@300;400&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: #3D2B1F;
  background-color: #F5F0E8;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* === top nav === */
#site-head {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  transition: all 0.35s ease;
  background: transparent;
}

#site-head.solid {
  background: #F5F0E8;
  border-bottom: 1px solid #D9D0C7;
}

#site-head.solid .logo-link,
#site-head.solid .nav-links a {
  color: #3D2B1F;
}

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

.logo-link {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 3px;
  color: #F5F0E8;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #F5F0E8;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #C9A227;
}

/* mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 24px;
  height: 1px;
  background: #F5F0E8;
  transition: all 0.3s ease;
}

#site-head.solid .hamburger span {
  background: #3D2B1F;
}

/* === hero === */
.lead-visual {
  width: 100%;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.lead-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === hero text area below === */
.hero-text-area {
  text-align: center;
  padding: 100px 20px 80px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-text-area h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.3;
  color: #3D2B1F;
  margin-bottom: 24px;
}

.hero-text-area .tagline {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: #7D6B5D;
  line-height: 1.8;
  font-style: italic;
}

/* === essay previews on home === */
.read-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.read-card {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.read-card:nth-child(even) {
  flex-direction: row-reverse;
}

.read-visual {
  flex: 0 0 45%;
  max-width: 450px;
}

.read-visual img {
  width: 100%;
  display: block;
}

.read-body {
  flex: 1;
}

.read-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  color: #3D2B1F;
  margin-bottom: 20px;
}

.read-body h2 a {
  color: #3D2B1F;
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-body h2 a:hover {
  color: #8B4513;
}

.read-body p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: #3D2B1F;
  margin-bottom: 1.2em;
}

.read-body .read-link {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #8B4513;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === main content area === */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

/* === article pages === */
article h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.25;
  color: #3D2B1F;
  margin-bottom: 12px;
  text-align: center;
}

article .meta-line {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #7D6B5D;
  margin-bottom: 60px;
  font-style: italic;
}

article p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: #3D2B1F;
  margin-bottom: 2.5em;
}

/* first paragraph larger */
article > p:first-of-type {
  font-size: 1.15em;
  line-height: 1.85;
}

/* === inline images in essays === */
.essay-image {
  text-align: center;
  margin: 50px auto;
  max-width: 400px;
}

.essay-image img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.essay-image .img-caption {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 13px;
  color: #7D6B5D;
  margin-top: 12px;
  line-height: 1.5;
}

/* === about page === */
.about-intro {
  text-align: center;
  margin-bottom: 80px;
}

.about-intro h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 38px;
  color: #3D2B1F;
  margin-bottom: 20px;
}

.about-intro p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: #7D6B5D;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-bottom: 80px;
}

.team-member {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.team-member:nth-child(even) {
  flex-direction: row-reverse;
}

.team-portrait {
  flex: 0 0 200px;
}

.team-portrait img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  display: block;
}

.team-bio h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 24px;
  color: #3D2B1F;
  margin-bottom: 6px;
}

.team-bio .role {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #C9A227;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.team-bio p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: #3D2B1F;
  margin-bottom: 1.5em;
}

.disclaimer-box {
  background: #FFFBF5;
  border: 1px solid #D9D0C7;
  padding: 40px;
  margin-top: 60px;
}

.disclaimer-box p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: #7D6B5D;
  margin-bottom: 1em;
}

/* === contact page === */
.contact-intro {
  text-align: center;
  margin-bottom: 60px;
}

.contact-intro h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 38px;
  color: #3D2B1F;
  margin-bottom: 16px;
}

.contact-intro p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #7D6B5D;
  line-height: 1.7;
}

.form-wrap {
  max-width: 520px;
  margin: 0 auto;
}

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

.form-row label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #3D2B1F;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #3D2B1F;
  background: #FFFBF5;
  border: 1px solid #D9D0C7;
  outline: none;
  transition: border-color 0.2s ease;
}

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

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

.form-row select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.submit-btn {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #F5F0E8;
  background: #3D2B1F;
  border: none;
  padding: 16px 48px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.submit-btn:hover {
  background: #8B4513;
}

.form-note {
  margin-top: 32px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #7D6B5D;
  font-style: italic;
  line-height: 1.6;
}

/* === thanks page === */
.thanks-box {
  text-align: center;
  padding: 120px 20px;
}

.thanks-box h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 38px;
  color: #3D2B1F;
  margin-bottom: 24px;
}

.thanks-box p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #7D6B5D;
  line-height: 1.8;
  margin-bottom: 40px;
}

.thanks-box a {
  color: #8B4513;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 15px;
}

/* === legal pages === */
.legal-wrap h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 32px;
  color: #3D2B1F;
  margin-bottom: 8px;
  text-align: center;
}

.legal-wrap .last-updated {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #7D6B5D;
  font-style: italic;
  margin-bottom: 50px;
}

.legal-wrap h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: #3D2B1F;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 18px;
  color: #3D2B1F;
  margin-top: 30px;
  margin-bottom: 12px;
}

.legal-wrap p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: #3D2B1F;
  margin-bottom: 1.5em;
}

.legal-wrap a {
  color: #8B4513;
  text-decoration: underline;
}

.legal-wrap ul {
  margin-left: 24px;
  margin-bottom: 1.5em;
}

.legal-wrap ul li {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: #3D2B1F;
  margin-bottom: 0.5em;
}

/* === cookie banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #3D2B1F;
  color: #F5F0E8;
  padding: 16px 40px;
  z-index: 2000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

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

.cookie-inner p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #F5F0E8;
  margin: 0;
}

.cookie-links {
  display: flex;
  gap: 20px;
}

.cookie-links a {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #C9A227;
  text-decoration: underline;
  cursor: pointer;
}

/* === cookie modal === */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(61, 43, 31, 0.7);
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-box {
  background: #F5F0E8;
  max-width: 480px;
  width: 90%;
  padding: 40px;
  position: relative;
}

.cookie-modal-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 24px;
  color: #3D2B1F;
  margin-bottom: 20px;
}

.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #D9D0C7;
}

.cookie-toggle-row label {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #3D2B1F;
}

.cookie-toggle-row .cookie-desc {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #7D6B5D;
  margin-top: 4px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #D9D0C7;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: #C9A227;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-close {
  margin-top: 24px;
  text-align: right;
}

.cookie-modal-close a {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #8B4513;
  text-decoration: underline;
  cursor: pointer;
}

/* === footer === */
.site-foot {
  background: #3D2B1F;
  color: #C9A227;
  padding: 60px 20px 40px;
  text-align: center;
}

.foot-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 3px;
  color: #C9A227;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.foot-address {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #C9A227;
  line-height: 1.7;
  margin-bottom: 24px;
  opacity: 0.8;
}

.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin-bottom: 30px;
}

.foot-links a {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: #C9A227;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.foot-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.foot-copy {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: #C9A227;
  opacity: 0.5;
}

/* === mobile menu === */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #F5F0E8;
  z-index: 1500;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

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

.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 28px;
  color: #3D2B1F;
  text-decoration: none;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 24px;
  right: 30px;
  font-size: 32px;
  color: #3D2B1F;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

/* === responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  #site-head {
    padding: 16px 20px;
  }

  .lead-visual {
    height: 60vh;
  }

  .hero-text-area {
    padding: 60px 20px 50px;
  }

  .hero-text-area h1 {
    font-size: 30px;
  }

  .read-card,
  .read-card:nth-child(even) {
    flex-direction: column;
    gap: 30px;
  }

  .read-visual {
    flex: none;
    max-width: 100%;
  }

  .read-section {
    padding: 0 20px 60px;
  }

  .read-card {
    margin-bottom: 60px;
  }

  .read-body h2 {
    font-size: 26px;
  }

  main {
    padding: 40px 20px 60px;
  }

  article h1 {
    font-size: 30px;
  }

  article p {
    font-size: 15px;
  }

  .team-member,
  .team-member:nth-child(even) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-portrait {
    flex: none;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
    padding: 12px 20px;
  }

  .essay-image {
    max-width: 100%;
    padding: 0 10px;
  }
}

/* === process and fix log pages === */
.process-wrap h1,
.fixlog-wrap h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 38px;
  color: #3D2B1F;
  margin-bottom: 12px;
  text-align: center;
}

.process-wrap .sub,
.fixlog-wrap .sub {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #7D6B5D;
  margin-bottom: 50px;
  font-style: italic;
}

.process-wrap p,
.fixlog-wrap p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: #3D2B1F;
  margin-bottom: 1.8em;
}

.fix-entry {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #D9D0C7;
}

.fix-entry:last-child {
  border-bottom: none;
}

.fix-entry .fix-date {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 18px;
  color: #C9A227;
  margin-bottom: 8px;
}

.fix-entry p {
  margin-bottom: 0.8em;
}
