@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wdth,wght@0,75..100,400..700;1,75..100,400..700&display=swap");

@font-face {
font-family: "Raphen Madam";
src: url("fonts/Raphen Madam DEMO.otf") format("opentype");
font-weight: 400;
font-style: normal;
font-display: swap;
}

/* =========================================================
COLOR & TYPE VARIABLES — change these to reskin the whole site
========================================================= */
:root {
--ink:        #2A2925;   /* dark gray, used for headlines and dark UI */
--paper:      #FFFCF5;   /* soft cream background */
--paper-dim:  #F5F0E6;   /* subtle cream for alternating sections */
--cream-text: #F1E3C5;   /* warm ivory for light text on dark surfaces */
--gold:       #B8863B;   /* accent — links, small marks */
--rust:       #9C4A32;   /* secondary accent — hover states */
--charcoal:   #273028;   /* body text */
--line:       #D8D2C2;   /* hairline borders */

--serif: "Source Serif 4", Georgia, serif;
--display: "Raphen Madam", Didot, "Bodoni 72", Georgia, serif;
--body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
RESET & BASE
========================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
margin: 0;
font-family: var(--sans);
color: #FFFFFF;
background: var(--paper);
line-height: 1.6;
}

a {
color: inherit;
text-decoration: none;
}

h1, h2, h3 {
font-family: var(--display);
color: var(--cream-text);
margin: 0 0 0.4em 0;
line-height: 1.15;
}

p {
font-family: var(--body);
color: #FFFFFF;
}

.story-page p {
font-family: var(--serif);
color: #FFFFFF;
}

section {
padding: 5rem 1.5rem;
}

.section-head {
max-width: 700px;
margin: 0 auto 2.5rem auto;
text-align: left;
}

.section-head h2 {
font-size: 2rem;
color: var(--cream-text);
}

.section-head p {
margin: 0.25rem 0 0 0;
color: #FFFFFF;
font-size: 1rem;
}

.placeholder-box {
background: var(--paper-dim);
border: 1px dashed var(--line);
color: var(--charcoal);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.85rem;
opacity: 0.7;
}

.crop-down { object-position: center 70%; }
.crop-up   { object-position: center 15%; }

/* =========================================================
MASTHEAD
========================================================= */
.masthead {
background: #14271E;
padding: 1.25rem 1.5rem;
position: sticky;
top: 0;
z-index: 10;
}

.masthead-inner {
max-width: 1100px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
}

.wordmark {
font-family: var(--serif);
font-weight: 700;
font-size: 1.4rem;
color: var(--cream-text);
letter-spacing: 0.01em;
}

.wordmark img {
height: 75px;
width: auto;
display: block;
}

.main-nav {
display: flex;
gap: 1.75rem;
}

.main-nav a {
color: var(--cream-text);
font-family: var(--display);
font-size: 1.22rem;
opacity: 0.85;
transition: opacity 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
opacity: 1;
color: var(--gold);
}

/* =========================================================
INTRO / HERO (homepage)
========================================================= */
.intro {
max-width: 1100px;
margin: 0 auto;
display: grid;
grid-template-columns: min(50vh, 500px) 1fr;
gap: 3rem;
align-items: center;
}

.intro-photo .placeholder-box,
.intro-photo img {
width: 100%;
aspect-ratio: 1 / 1;
border-radius: 0;
object-fit: cover;
}

.eyebrow-line {
color: var(--gold);
font-size: 1rem;
margin: 0 0 0.5rem 0;
}

.intro-text h1 {
font-size: 2.5rem;
max-width: 14ch;
color: var(--cream-text);
}

.intro-bio {
max-width: 60ch;
margin: 1rem 0 1.25rem 0;
}

.intro-more {
margin-top: 1.5rem;
}

.contact-link {
border-bottom: 1px solid var(--gold);
padding-bottom: 2px;
font-weight: 500;
}

.contact-link:hover {
color: var(--rust);
border-color: var(--rust);
}

/* =========================================================
ABOUT PAGE
========================================================= */
.about-page {
max-width: 900px;
margin: 0 auto;
padding: 5rem 1.5rem;
display: grid;
grid-template-columns: 320px 1fr;
gap: 3rem;
align-items: start;
}

.about-page-photo img {
width: 100%;
border-radius: 4px;
object-fit: cover;
aspect-ratio: 3 / 4;
}

.about-page-body h1 {
font-size: 2.2rem;
margin-bottom: 1.25rem;
color: var(--cream-text);
}

/* =========================================================
TOP STORIES
========================================================= */
.stories {
background: var(--paper-dim);
}

.story-list {
max-width: 800px;
margin: 0 auto;
display: flex;
flex-direction: column;
}

.story {
display: grid;
grid-template-columns: 240px 1fr;
gap: 1.5rem;
padding: 1.75rem 0;
border-bottom: 1px solid var(--line);
}

.story:first-child { padding-top: 0; }
.story:last-child  { border-bottom: none; }

.story-image .placeholder-box.small,
.story-image img {
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
}

.story-outlet {
margin: 0 0 0.25rem 0;
font-size: 0.85rem;
color: var(--gold);
font-weight: 600;
}

.story-content h3 {
font-size: 1.3rem;
margin-bottom: 0.4rem;
color: var(--cream-text);
}

.story-content h3 a:hover {
color: var(--rust);
}

.story-excerpt {
margin: 0 0 0.6rem 0;
color: #FFFFFF;
}

.read-link {
font-size: 0.9rem;
font-weight: 600;
color: var(--ink);
border-bottom: 1px solid var(--ink);
}

.read-link:hover {
color: var(--rust);
border-color: var(--rust);
}

.story-navigation {
display: flex;
align-items: center;
gap: 1.5rem;
}

.stories-more {
max-width: 800px;
margin: 2rem auto 0 auto;
text-align: center;
}

.read-more-btn {
display: inline-block;
padding: 0.7rem 1.75rem;
background: var(--ink);
color: var(--cream-text);
border-radius: 4px;
font-weight: 600;
font-size: 0.95rem;
transition: background 0.15s ease;
}

.read-more-btn:hover {
background: var(--rust);
color: var(--cream-text);
}

/* individual story page */
.story-page {
max-width: 700px;
margin: 4rem auto;
padding: 0 1.5rem;
}

.story-page h1 {
font-family: "Libre Baskerville", Georgia, serif;
font-size: 2.2rem;
margin: 0.3rem 0 1.5rem 0;
color: var(--cream-text);
}

.story-page-image img {
width: 100%;
border-radius: 4px;
margin-bottom: 0.5rem;
}

.story-page-image figcaption {
font-size: 0.85rem;
color: #FFFFFF;
opacity: 0.75;
margin-top: 0.5rem;
font-style: italic;
}

.story-page-body p,
.about-page-body p {
margin-bottom: 1.2rem;
font-size: 1.05rem;
color: #FFFFFF;
}

.story-page-body p {
font-family: "Libre Baskerville", Georgia, serif;
color: #FFFFFF;
}

/* =========================================================
PHOTO + VIDEO GALLERIES
========================================================= */
.gallery-grid {
max-width: 800px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}

.gallery-tile {
position: relative;
aspect-ratio: 1 / 1;
overflow: hidden;
display: block;
border-radius: 4px;
}

.gallery-tile img,
.project-video-unavailable img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.3s ease;
}

.gallery-tile:hover img,
.project-video-unavailable:hover img {
transform: scale(1.05);
}

.gallery-overlay {
position: absolute;
inset: 0;
background: rgba(27, 36, 48, 0.6);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.25s ease;
}

.gallery-tile:hover .gallery-overlay,
.gallery-tile:focus-visible .gallery-overlay {
opacity: 1;
}

.gallery-btn {
color: var(--cream-text);
font-weight: 600;
font-size: 0.9rem;
padding: 0.6rem 1.25rem;
border: 1px solid var(--cream-text);
border-radius: 4px;
}

.masonry-gallery {
max-width: 1100px;
margin: 0 auto;
column-count: 3;
column-gap: 1rem;
}

.masonry-gallery img,
.masonry-gallery video {
width: 100%;
max-height: 500px;
object-fit: cover;
display: block;
margin-bottom: 1rem;
border-radius: 4px;
break-inside: avoid;
}

.masonry-video {
width: 100%;
margin-bottom: 1rem;
border-radius: 4px;
overflow: hidden;
break-inside: avoid;
}

.masonry-video video {
display: block;
width: 100%;
height: auto;
border-radius: 4px;
}

.video-grid {
max-width: 1100px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}

.video-embed {
position: relative;
aspect-ratio: 16 / 9;
}

.video-embed iframe {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: none;
}

.render-video-grid {
max-width: 1100px;
margin: 2rem auto 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5rem;
}

.render-video video {
display: block;
width: auto;
height: auto;
max-width: 100%;
max-height: 450px;
border-radius: 4px;
}

.render-stills {
max-width: 1100px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}

.render-stills img {
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
border-radius: 4px;
display: block;
}

/* =========================================================
OTHER PROJECTS
========================================================= */
.projects {
background: var(--paper-dim);
}

.project-list {
max-width: 900px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 2.5rem;
}

.project {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.75rem;
align-items: center;
}

.project-video {
position: relative;
aspect-ratio: 16 / 9;
}

.project-video iframe,
.project-video video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: none;
object-fit: cover;
border-radius: 4px;
}

.project-info h3 {
font-size: 1.3rem;
color: var(--cream-text);
}

.project-video-unavailable {
position: relative;
display: block;
overflow: hidden;
border-radius: 4px;
}

.watch-external-btn {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: var(--cream-text);
font-weight: 600;
font-size: 0.95rem;
padding: 0.75rem 1.5rem;
background: rgba(27, 36, 48, 0.75);
border: 1px solid var(--cream-text);
border-radius: 4px;
white-space: nowrap;
}

.project-video-unavailable:hover .watch-external-btn {
background: var(--rust);
border-color: var(--rust);
}

/* =========================================================
RESUME CTA
========================================================= */
.resume-cta {
text-align: center;
padding: 3rem 1.5rem;
}

/* =========================================================
FOOTER
========================================================= */
.site-footer {
text-align: center;
padding: 2rem 1.5rem;
font-size: 0.85rem;
color: #FFFFFF;
opacity: 0.7;
}

/* =========================================================
RESPONSIVE
========================================================= */
@media (max-width: 800px) {
.intro {
grid-template-columns: 1fr;
text-align: left;
}

.intro-photo {
max-width: min(50vh, 350px);
}

.story {
grid-template-columns: 1fr;
}

.gallery-grid {
grid-template-columns: repeat(2, 1fr);
}

.video-grid {
grid-template-columns: 1fr;
}

.project {
grid-template-columns: 1fr;
}

.main-nav {
gap: 1rem;
font-size: 0.85rem;
}

.render-video video {
max-height: 350px;
}

.render-stills {
grid-template-columns: 1fr;
}
}

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

.about-page-photo {
max-width: 320px;
}
}

@media (max-width: 500px) {
.gallery-grid {
grid-template-columns: repeat(1, 1fr);
}
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
}
