@charset "utf-8";

/* =======================================
   BASE LAYOUT / PAGE
======================================= */

body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  color: #222;

  background-color: #f4f4f4; /* #fafafa; /* fallback */
  background-image:
    linear-gradient(to bottom, transparent, transparent),
    url("img/bg-noise.jpg"); 
  background-repeat: repeat;
}

.page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem 2rem 2rem;
  border: 1px solid #000;
  background: #fcfcfc; /* org: #fff) */
}

/* Utility used by JS */
.hidden {
  display: none;
}

/* =======================================
   HEADER + NAVIGATION
======================================= */

header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative; /* for top-right logo */
}

/* Top-right logo image */
.site-logo {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 48px;
  height: auto;
  border-radius: 4px;
  -webkit-user-drag: none;
  user-select: none;
}

.logo {
  font-weight: 700;
}

nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

nav a {
  text-decoration: none;
  color: #222;
}

nav a:hover {
  text-decoration: underline;
}

nav a.active {
  text-decoration: underline;
}

/* =======================================
   PAGE HEADER (Title + subtitle)
======================================= */

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title,
.projects-header h1 {
  text-shadow: 0 0 1px rgba(0,0,0,0.2);
}

.page-eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Year row: "Year [ 2025 ▼ ]" */
.year-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.year-label {
  font-weight: 600;
}

.year-select {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.year-select span {
  font-size: 0.95rem;
}

.year-select select {
  border: 1px solid #000;
  background: #fff;
  font: inherit;
  padding: 0.1rem 0.3rem;
}


/* =======================================
   GALLERY SECTION (index.html)
======================================= */

.gallery-section {
  margin-bottom: 2rem;
}

.month-block {
  margin-bottom: 2rem;
}

.month-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.month-title {
  font-weight: 600;
}

.month-meta {
  font-size: 0.8rem;
  color: #555;
}

/* Box around thumbnails */

.thumb-grid {
  border: 1px solid #000;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* Each thumbnail box */

.thumb {
  border: 1px solid #000;
  aspect-ratio: 4 / 3;
  background: #eee;
  overflow: hidden; 
  border-radius: 4px; /* for rounded corners */

}

/* Optional label under each thumb */

.thumb-label {
  font-size: 0.7rem;
  text-align: center;
  margin-top: 0.25rem;
}

/* Thumbnail image */

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 2px;
  background: white;
}


/* =======================================
   UPCOMING TRIPS TABLE (index.html)
======================================= */

.trips-section {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.trips-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000;
}

.trips-table th,
.trips-table td {
  border: 1px solid #000;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.9rem;
}

.trips-table thead th {
  background: #f0f0f0;
}

/* (Optional) compact trips style – will override my table because it looks better */

.trips-section {
  margin-top: 3rem !important;
  color: #666 !important;
  font-size: 0.8rem !important;
}

.trips-section .section-title {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #777 !important;
  margin-bottom: 0.75rem !important;
}

.trips-table {
  width: 100% !important;
  border: none !important;
  border-collapse: collapse !important;
}

.trips-table thead {
  display: none !important;
}

.trips-table tr {
  display: block !important;
  padding: 0.35rem 0 !important;
  border: none !important;
  position: relative !important;
  margin-left: 1rem !important;
}

.trips-table tr::before {
  content: "○" !important;
  position: absolute !important;
  left: -1rem !important;
  top: 0.1rem !important;
  font-size: 0.7rem !important;
  color: #999 !important;
}

.trips-table td {
  border: none !important;
  padding: 0 !important;
  font-size: 0.8rem !important;
  color: #555 !important;
  display: inline !important;
}

.trips-table td:first-child {
  font-weight: 600 !important;
}

.trips-table td:nth-child(2)::before {
  content: " – " !important; /* warning */
}

.trips-table td:last-child {
  font-style: italic !important;
  color: #666 !important;
}

.trips-table td:last-child::before {
  content: " — " !important;
}

/* =======================================
   FOOTER
======================================= */

footer {
  border-top: 1px solid #000;
  margin-top: 3rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

/* =======================================
   LIGHTBOX (index.html)
======================================= */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border: 1px solid #fff;
  object-fit: contain;
}

/* hover highlight on thumbnails */
.thumb img:hover {
  opacity: 0.8;
  cursor: pointer;
}

/* =======================================
   ABOUT PAGE (about-contact.html)
======================================= */

/* Page header block */

.about-section {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* Smaller eyebrow */

.about-section .page-eyebrow {
  font-size: 0.65rem;
  color: #777;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
  text-align: left;
}

.page-title {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.page-title,
.contact-section .section-title {
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.about-intro {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Placeholder portrait - may use */

.about-photo {
  width: 200px;
  height: 260px;
  border: 1px solid #000;
  background: #eee;
  margin: 0 auto;
}

.about-photo-caption {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Bio text */

.about-text {
  max-width: 650px;
  margin: 2rem auto 3rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Section label + divider */

.section-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin: 3rem 0 1rem;
  text-align: center;
}

.section-divider {
  width: 120px;
  height: 1px;
  background: #000;
  margin: 0.5rem auto 2rem;
}

/* Contact block */

.contact-section {
  max-width: 640px;
  margin: 2.5rem auto 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ccc;
}

.contact-section .section-title {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Small ▼ above Contact me */

.contact-section .section-title::before {
  content: "▼";
  display: block;
  font-size: 0.7rem;
  color: #777;
  margin-bottom: 0.35rem;
}

.contact-intro {
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* Em-dashes around intro text */

.contact-intro::before,
.contact-intro::after {
  content: "—";
  color: #aaa;
  margin: 0 0.3rem;
}

/* Contact form */

.contact-form {
  font-size: 0.9rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #000;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  font: inherit;
  padding: 0.4rem 1.1rem;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
}

.contact-form button:hover {
  background: #f0f0f0;
}

/* =======================================
   PROJECTS PAGE (projects.html)
======================================= */

.projects-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.projects-header h1 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0.5rem 0 1.75rem;
}

.projects-header .page-eyebrow {
  margin-bottom: 0.4rem;
}

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

.projects-label {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

/* Project cards */

.project-card {
  border: 1px solid #000;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Thumbnail figure */

.project-thumb {
  position: relative;
  min-width: 140px;
  max-width: 160px;
  border: 1px solid #000;
  background: #eee;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  -webkit-user-drag: none;
  user-select: none;
}

/* Gray image fills box */

.project-thumb-img {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* Centered overlay text */

.project-thumb-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #555;
  text-align: center;
  pointer-events: none;
}

.project-thumb-label {
  font-size: 0.75rem;
  color: #555;
}

.project-body {
  flex: 1;
}

.project-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-summary {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.project-tech {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.project-links {
  font-size: 0.8rem;
}

.project-link {
  text-decoration: none;
  color: #222;
}

.project-link:hover {
  text-decoration: underline;
}

.project-link-separator {
  margin: 0 0.4rem;
  color: #aaa;
}

.projects-note {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.5rem;
}

.projects-links-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* =======================================
   THANK YOU PAGE (thankyou.html)
======================================= */

.thanks-section {
  max-width: 640px;
  margin: 3.5rem auto 3rem;
  text-align: center;
}

.thanks-section .page-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.thanks-title {
  font-size: 1rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.thanks-divider {
  width: 220px;
  height: 1px;
  background: #000;
  margin: 0 auto 2rem;
}

.thanks-message {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.thanks-button {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid #000;
  text-decoration: none;
  color: #222;
  font-size: 0.85rem;
}

.thanks-button:hover {
  background: #f5f5f5;
}
