*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --black: #000;
  --near-black: #0d0d0d;
  --charcoal: #1f1f1f;
  --grey: #a6a6a6;
  --white: #fff;
  --serif: "Newsreader", "Thermal", Georgia, serif;
  --display: "Times New Roman", Times, serif;
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--serif);
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  background: rgba(13, 13, 13, 0.92);
}
.site-header.over-image { position: absolute; left: 0; right: 0; background: rgba(13, 13, 13, 0.75); }
.site-header.light { background: rgba(102, 102, 102, 1); }
.site-header.smoke { background: rgba(60, 58, 52, 0.85); }
.site-header.solid { background: var(--black); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 68px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: 16px;
  color: var(--white);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }


.menu-toggle {
  display: none;
  position: absolute;
  left: 20px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 12px 28px;
  font: 18px var(--serif);
  text-decoration: none;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--white); }

/* Footer */
.site-footer {
  background: var(--black);
  padding: 90px 36px 34px;
}
.site-footer hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .8);
  margin: 0 0 26px;
}
.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 15px;
  word-spacing: 1px;
}
.site-footer span { margin: 0 10px; }

/* Home */
.hero {
  position: relative;
  min-height: 900px;
  height: 100vh;
  max-height: 1000px;
  background: url("images/home-hero.jpg") 35% 25% / cover no-repeat;
}
.hero-title {
  position: absolute;
  left: 52px;
  top: 34%;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  color: var(--white);
}
.hero-title .name { display: block; font-size: 58px; letter-spacing: 9px; }
.hero-title .sub { display: block; font-size: 32px; letter-spacing: 9px; margin: 70px 0 0 125px; }
.hero .btn { position: absolute; right: 108px; bottom: 120px; }

/* Calendar */
.calendar-page { background: var(--charcoal); padding: 48px 72px; }
.calendar-card {
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 150px 48px;
}
.calendar-card h2 { font-weight: 400; font-size: 76px; line-height: 1.1; margin: 0 0 40px; }
.calendar-card p { font-size: 24px; line-height: 1.35; margin: 0 0 30px; max-width: 520px; }

/* Global warming */
.gw-page {
  background: url("images/gw-background.webp") center / cover no-repeat;
  padding: 30px 20px 110px;
}
.gw-page h1 {
  text-align: center;
  font-weight: 400;
  font-size: 104px;
  margin: 0 0 36px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.gw-page img { width: 100%; max-width: 970px; margin: 0 auto 46px; }

/* Portfolio */
.portfolio-page { padding: 100px 22px 100px; }
.portfolio-page h1 { font-weight: 400; font-size: 96px; margin: 0 0 56px; }
.portfolio-intro { font-size: 18px; line-height: 1.4; max-width: 690px; margin: 0 0 60px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  row-gap: 72px;
  align-items: start;
}
.project .thumb { width: 100%; background: #222 center / cover no-repeat; }
.project .meta { display: flex; justify-content: space-between; font-size: 22px; margin: 14px 0 26px; }
.project p { font-size: 16px; line-height: 1.5; margin: 0; max-width: 420px; }

/* Contact */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 90px 90px 104px;
}
.photo-stack { position: relative; max-width: 590px; }
.photo-stack .back { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .front { display: block; width: 100%; height: auto; object-fit: cover; }
.contact-hero h2 { font-weight: 400; font-size: 76px; margin: 0 0 32px; padding-bottom: 30px; border-bottom: 1px solid var(--white); }
.contact-hero p { font-size: 24px; line-height: 1.35; margin: 0 0 32px; }
.contact-hero .email { font-weight: 700; font-size: 18px; }

.contact-form-section { background: var(--near-black); padding: 130px 20px 140px; }
.contact-form-section h3 { text-align: center; font-weight: 400; font-size: 66px; margin: 0 0 36px; }
.contact-form { max-width: 826px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 13px; color: #ccc; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #888;
  color: var(--white);
  font: 15px var(--serif);
  padding: 10px 12px;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #555; }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--white); }
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form .btn { width: 100%; font-size: 15px; padding: 10px; }
.form-status { grid-column: 1 / -1; text-align: center; margin: 0; min-height: 1em; }

/* Responsive */
@media (max-width: 900px) {
  .site-header { justify-content: flex-start; padding: 0 20px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--near-black); padding: 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 18px; align-items: center; }
  .hero-title { left: 24px; }
  .hero-title .name { font-size: 36px; letter-spacing: 5px; }
  .hero-title .sub { font-size: 22px; margin: 30px 0 0 60px; }
  .hero .btn { right: 24px; bottom: 60px; }
  .calendar-page { padding: 24px; }
  .calendar-card, .contact-hero { grid-template-columns: 1fr; padding: 48px 24px; }
  .calendar-card h2, .contact-hero h2 { font-size: 48px; }
  .gw-page h1 { font-size: 56px; }
  .portfolio-page h1 { font-size: 60px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .site-footer span { display: none; }
}

/* Galleries */
.gallery-list { max-height: none; }
.gallery-card { text-decoration: none; color: var(--white); display: block; }
.gallery-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--charcoal); }
.gallery-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-card:hover .thumb img { transform: scale(1.04); }
.back-btn { display: inline-block; margin: 0 0 24px; padding: 10px 18px; border: 1px solid var(--grey); color: var(--white); text-decoration: none; font-size: 16px; }
.back-btn:hover { background: var(--white); color: var(--black); }
.back-btn.bottom { margin-top: 40px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.photo-grid .photo { padding: 0; border: 0; background: var(--charcoal); cursor: zoom-in; aspect-ratio: 3/2; overflow: hidden; }
.photo-grid .photo img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 48px; cursor: pointer; padding: 12px 18px; line-height: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lightbox button { font-size: 36px; }
}

/* Help text for non-technical visitors */
.gallery-help { text-align: center; font-size: 1.25rem; font-weight: 700; margin: 4px auto 24px; padding: 12px 18px; max-width: 640px; background: #f3efe6; border: 2px solid #c9b98f; border-radius: 8px; color: #222; }
.lightbox button.lb-return { top: auto; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 22px; font-weight: 700; font-family: inherit; line-height: 1.2; background: #fff; color: #111; border: 2px solid #fff; border-radius: 8px; padding: 12px 22px; box-shadow: 0 2px 12px rgba(0,0,0,.5); white-space: nowrap; }
.lightbox button.lb-return:hover, .lightbox button.lb-return:focus { background: #f3efe6; }
.lightbox img { max-height: 80vh; }
@media (max-width: 600px) { .lightbox button.lb-return { font-size: 17px; padding: 10px 14px; bottom: 12px; white-space: normal; width: 88vw; } }
