﻿/* ============================================================
   patwan112.github.io ΓÇô shared stylesheet
   Fonts: EB Garamond (headings / logotype) ┬╖ Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* ---- design tokens ---- */
:root {
  --bg:     #fafaf8;
  --fg:     #1a1a1a;
  --muted:  #777;
  --soft:   #aaa;
  --border: #e8e8e4;
  --white:  #fff;
}

/* ---- reset / base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-name:hover {
  text-decoration: none;
  opacity: 0.7;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  text-decoration: none;
}

@media (max-width: 600px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.8rem; }
}

/* ============================================================
   HOME ΓÇö CARD
   ============================================================ */
.home-wrap {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  position: relative; /* required for the optional background overlay */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* semi-transparent overlay ΓÇö only visible when a bg image is active */
.home-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;   /* set to e.g. rgba(0,0,0,0.35) once you add a bg image */
  pointer-events: none;
  z-index: 0;
}

/* keep card above the overlay */
.home-wrap .card {
  position: relative;
  z-index: 1;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem 2.25rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.card-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--border);
}

.card-name {
  font-family: 'EB Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  color: var(--fg);
}

.card-role {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.card-loc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--soft);
  margin-bottom: 1.5rem;
}

/* social icon row */
.card-icons {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
  position: relative;
}
.icon-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--white);
  text-decoration: none;
}

/* CSS tooltip ΓÇö triggered by data-label attribute */
.icon-btn::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: var(--fg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 20;
}
.icon-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--fg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 20;
}
.icon-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.icon-btn:hover::before {
  opacity: 1;
}

/* nav buttons */
.card-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.card-nav-btn {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  display: inline-block;
  width: 100%;
  max-width: 220px;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--fg);
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.card-nav-btn:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 480px) {
  .card { padding: 2rem 1.5rem 1.75rem; }
}

/* ============================================================
   PROSE PAGES  (about, now)
   ============================================================ */
.page-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}
@media (max-width: 600px) {
  .page-wrap { padding: 2rem 1.25rem; }
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soft);
  margin-bottom: 0.5rem;
}

.page-wrap h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

/* when there's no subtitle, restore breathing room before body copy */
.page-wrap h1:not(:has(+ .photos-subtitle)) {
  margin-bottom: 1.75rem;
}

.page-wrap p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.75;
}

.page-wrap a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-wrap ul {
  margin: 0.5rem 0 1.1rem 1.4rem;
}
.page-wrap li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.7;
}

.page-wrap h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 2rem 0 0.5rem;
  color: var(--fg);
}

/* pill link row */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.pill {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--fg);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-block;
}
.pill:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--white);
  text-decoration: none;
}

/* small muted footer note */
.page-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2.5rem;
  line-height: 1.6;
}
.page-note a {
  color: var(--muted);
  text-underline-offset: 2px;
}

/* ============================================================
   NOW PAGE ΓÇö month blocks
   ============================================================ */
.now-block {
  margin-bottom: 2.5rem;
}

.now-month {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soft);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.now-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.now-block li {
  padding: 0.2rem 0;
  font-size: 0.975rem;
  line-height: 1.7;
}
.now-block li em,
.now-highlight li em {
  font-style: italic;
  font-size: inherit;
}
.now-block li sup,
.now-highlight li sup {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
}
.now-block li sub,
.now-highlight li sub {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: sub;
}
.now-block li strong,
.now-highlight li strong {
  font-weight: 600;
}
.now-block a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   PHOTOS PAGE
   ============================================================ */
.photos-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}
@media (max-width: 600px) {
  .photos-wrap { padding: 2rem 1.25rem; }
}

.photos-wrap h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.photos-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.75rem;
  line-height: 1.6;
}

.photo-grid {
  columns: 2;
  column-gap: 2.5rem;
}
.photo-card {
  break-inside: avoid;
  margin-bottom: 3.5rem;
}
@media (max-width: 600px) {
  .photo-grid { columns: 1; column-gap: 0; }
  .photo-card { margin-bottom: 2.5rem; }
}

.photo-img-wrap {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0.65rem;
  cursor: pointer;
}
/* Natural proportions ΓÇö no forced crop. Portrait shots stay tall,
   landscape shots stay wide. overflow:hidden clips the scale hover. */
.photo-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.photo-img-wrap:hover img {
  transform: scale(1.03);
}

/* ============================================================
   PHOTOS ΓÇö lightbox
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: calc(100vw - 6rem);
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  display: block;
  border-radius: 2px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  margin-top: 0.9rem;
  text-align: center;
}
.lightbox-caption-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.lightbox-caption-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.2rem;
}

/* close / prev / next */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  line-height: 1;
  padding: 0.75rem;
  transition: color 0.15s;
  user-select: none;
  z-index: 1001;
  font-family: 'Inter', sans-serif;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }

.lightbox-close {
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
}
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

/* counter */
.lightbox-counter {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
  z-index: 1001;
}

@media (max-width: 600px) {
  .lightbox-img {
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 8rem);
  }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}

.photo-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}
.photo-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.photo-loc {
  font-size: 0.75rem;
  color: var(--soft);
}
.photo-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--fg);
}
.photo-story {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   NOW PAGE ΓÇö history / collapsible year sections
   ============================================================ */
.now-history-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soft);
  margin: 3rem 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* each year = a <details> element */
.now-year {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.now-year > summary {
  list-style: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--fg);
  user-select: none;
  transition: background 0.15s;
  gap: 0.5rem;
}
.now-year > summary::-webkit-details-marker { display: none; }
.now-year > summary::marker { display: none; }
.now-year > summary:hover { background: rgba(0, 0, 0, 0.025); }

.now-year-chevron {
  font-size: 0.7rem;
  color: var(--soft);
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
details[open] .now-year-chevron {
  transform: rotate(180deg);
}

.now-year-body {
  padding: 1.1rem 1.25rem 0.75rem;
  border-top: 1px solid var(--border);
}

/* highlight block inside each year */
.now-highlight {
  background: #f4f4f1;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.75rem;
}
.now-highlight-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.now-highlight ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.now-highlight li {
  font-size: 1.075rem;
  color: var(--fg);
  line-height: 1.7;
  padding: 0.15rem 0;
}

/* skeleton / unfilled month */
.now-placeholder {
  color: var(--soft) !important;
  font-style: italic;
}

/* Hide the top "Current Entry" scaffold while it only contains the
   placeholder bullet. The block re-appears automatically the moment a
   real <li> is added (or the placeholder class is removed). Scoped to
   the top-level block so year-internal placeholders still render. */
.page-wrap > .now-block:has(> ul > li.now-placeholder:only-child) {
  display: none;
}
