@font-face {
  font-family: 'TimesTen LT Std';
  src: url('/assets/fonts/TimesTenLTStd-Roman.woff2') format('woff2'),
       url('/assets/fonts/TimesTenLTStd-Roman.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TimesTen LT Std';
  src: url('/assets/fonts/TimesTenLTStd-Bold.woff2') format('woff2'),
       url('/assets/fonts/TimesTenLTStd-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TimesTen LT Std';
  src: url('/assets/fonts/TimesTenLTStd-Italic.woff2') format('woff2'),
       url('/assets/fonts/TimesTenLTStd-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- THEME VARIABLES ---------- */

:root {
  --bg: #FFF;
  --fg: #111111;
  --muted: #666666;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --link: #0000ee;
}

/* Dark theme overrides */
body.theme-dark {
  --bg: #111111;
  --fg: #f4f1ea;
  --muted: #aaa7a0;
  --border-subtle: rgba(255, 255, 255, 0.16);
  --link: #E8D7C5;
}

/* Base font + theme */
body {
  font-family: 'TimesTen LT Std', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: 1.1rem;
  background: var(--bg);
  color: var(--fg);
  transition: background-color 180ms ease, color 180ms ease;
}

/* Sans-serif override when toggled */
body.font-sans {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  text-decoration: none;
}

/* ---------- PREFERENCE TOGGLES ---------- */

.preferences-toggle-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: right;
  margin: 2rem auto;
  font-size: 0.85rem;
  max-width: 720px;
  padding-right: 1rem;
}

.toggle-button {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font: inherit;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(4px);
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 120ms ease,
    box-shadow 120ms ease,
    color 150ms ease;
}

body.theme-dark .toggle-button {
  background: rgba(15, 15, 15, 0.85);
}

.toggle-button:hover {
  transform: translateY(-1px);
}

/* ---------- LAYOUT / STRUCTURE ---------- */

.site-header,
.site-footer {
  padding: 1.5rem 2rem;
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.site-header a {
  font-size: 1.2rem;
  color: var(--link);;
  letter-spacing: normal;
  font-weight: 400;
}

.site-header a:visited {
  color:var(--link);;
}

.site-footer {
  border-bottom: none;
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-credit {
  font-size: 0.85rem;
  color: var(--text-muted, #777);
  text-align: left;
  margin-top: 3rem;
  line-height: 1.5;
}


.site-title {
  font-weight: 600;
  text-decoration: none;
}

.site-nav a {
  margin-left: 1rem;
  text-decoration: none;
}

.site-main {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* ---------- PROJECT LIST (OLD STYLE, STILL HERE IF NEEDED) ---------- */

.project-list {
  list-style: none;
  padding: 0;
}

.project-list-item {
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.project-list-item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.project-list-summary {
  color: #555;
}

/* ---------- PROJECT PAGES ---------- */

.project {
  max-width: 800px;
  margin: 0 auto;
}

.project-hero img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

.project-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
}

.project-meta {
  color: #666;
  font-size: 0.9rem;
}

.project-summary {
  margin-bottom: 4rem;
}

.project-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin: 2.5rem 0 3rem;
}


@media (max-width: 700px) {
  .project-intro-grid {
    grid-template-columns: 1fr;
  }
}

.project-intro-grid h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.project-intro-grid p {
  margin: 0;
  color: var(--fg);
}


/* ---------- CASE SECTIONS (TEXT + MEDIA GRID) ---------- */

.case-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin: 3.5rem 0;
}

.case-text h3 {
  margin-bottom: 0.75rem;
}

.case-text p + p {
  margin-top: 0.75rem;
}

.case-media {
  margin: 0;
}

.case-media img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.case-media figcaption {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.5rem;
}

/* ---------- BACK LINK / FOOTER ---------- */

.back-link {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--fg);
  margin-bottom: 1.5rem;
  gap: 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
}

.back-link:hover {
  background: (--border-subtle);
  border-color: var(--muted);
  color: var(--fg);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.project-footer-divider {
  margin: 4rem 0 2.5rem;
  border: 1px solid var(--border-subtle);
}


.project-footer {
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.project-footer-link {
  font-size: 1rem;
  text-decoration: none;
  color: #555;
}

.project-footer-link:hover {
  text-decoration: underline;
  color: #000;
}

.start-date {
  margin-right: 1.5rem;
  color:#999;
}

/* ---------- VIDEO ---------- */

.video-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Two columns on desktop */
@media (min-width: 900px) {
  .video-grid {
    flex-wrap: nowrap;
  }
}

/* Individual video boxes (portrait) */
.project-video {
  position: relative;
  width: 371px;
  height: 720px;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

/* Video element inside */
.project-video__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pause button */
.project-video__pause {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
  max-width: 371px;
}

/* ---------- CASE GRID (HOMEPAGE CARDS) ---------- */

/* Grid layout */
.case-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
  grid-template-columns: 1fr;
  justify-items: center;
}

/* Card styles */
.case-card {
  display: block;
  padding: 1.7rem 0rem;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
  position: relative;
}

/* Hover + focus styling */
.case-card:hover,
.case-card:focus-visible {
  transform: translateY(-2px);
}

.case-card__meta {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #777;
  margin-bottom: 0.5rem;
}

.case-card__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.case-card__summary {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--muted);
}

.case-card::after {
  content: "↗";
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.9rem;
  color: #bbb;
  transition: transform 150ms ease, color 150ms ease;
}

.case-card:hover::after,
.case-card:focus-visible::after {
  transform: translate(2px, -2px);
  color: #666;
}

/* ---------- MOBILE / SMALL SCREENS ---------- */

@media (max-width: 900px) {
  .case-section {
    grid-template-columns: 1fr;
  }

  .project-video {
    width: 100%;
    max-width: 371px;
    aspect-ratio: 371 / 720;
    height: auto;
    flex-shrink: 0;
  }

  .project-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
