/*
Theme Name: Tim Duerig Portfolio
Theme URI: https://timduerig.com
Author: OpenAI for Tim Duerig
Description: Minimal editorial portfolio theme for film work.
Version: 4.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: timduerig
*/
:root{--bg:#f7f7f4;--fg:#111;--muted:#666;--line:#bdbdb7;--pad:4vw;--gap:2.2vw}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--fg);font-family:"Courier New",Courier,monospace;font-size:14px;line-height:1.25}a{color:inherit;text-decoration:none}img,video,iframe{max-width:100%;display:block}.site{min-height:100vh}.topbar{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:start;padding:3vw var(--pad) 0;font-size:13px}.topbar .center{text-align:left}.topbar .right{text-align:right}.wrap{padding:0 var(--pad)}.hero{display:grid;grid-template-columns:20% 1fr;gap:var(--gap);align-items:center;min-height:68vh;padding-top:4vh}.eyebrow{margin:0 0 26px;font-size:13px}.hero h1,.project-title{font-family:Arial,Helvetica,sans-serif;font-weight:500;letter-spacing:.01em;line-height:.95;margin:0;font-size:clamp(38px,4vw,72px)}.intro{max-width:260px;margin:30px 0;font-size:15px;line-height:1.45}.text-link{display:inline-flex;align-items:center;gap:18px;text-transform:uppercase}.text-link:before{content:"";width:34px;border-top:1px solid}.media-window{position:relative;aspect-ratio:16/9;background:#ddd;overflow:hidden}.media-window video,.media-window img,.media-window iframe{width:100%;height:100%;object-fit:cover;border:0}.media-label{position:absolute;right:24px;bottom:20px;color:white;text-transform:uppercase}.portfolio{padding:3vh var(--pad) 7vh}.portfolio h2{font-family:Arial,Helvetica,sans-serif;font-size:clamp(34px,4vw,64px);margin:0 0 8px}.project-row{border-top:1px solid var(--fg)}.project-row:last-child{border-bottom:1px solid var(--fg)}.project-toggle{width:100%;display:grid;grid-template-columns:18% 1fr auto;gap:20px;align-items:center;background:none;border:0;padding:14px 0;font:inherit;color:inherit;text-align:left;cursor:pointer}.project-toggle .title{font-size:clamp(18px,2vw,32px)}.project-panel{display:none;padding:10px 0 28px}.project-row.open .project-panel{display:grid;grid-template-columns:18% 42% 1fr;gap:var(--gap);align-items:end}.project-preview{aspect-ratio:16/9;overflow:hidden}.project-preview img{width:100%;height:100%;object-fit:cover}.project-meta{font-size:12px;line-height:1.45}.project-meta p{max-width:360px}.project-page{padding:7vh var(--pad)}.project-head{display:grid;grid-template-columns:20% 1fr;gap:var(--gap);align-items:start}.back{display:block;margin-bottom:42px}.year{font-size:18px;margin-bottom:24px}.meta-table{margin-top:38px;font-size:12px}.meta-table div{display:grid;grid-template-columns:80px 1fr}.project-copy{max-width:440px;margin:7vh 0;font-size:14px;line-height:1.5}.stills{border-top:1px solid var(--line);padding-top:28px}.stills-head{display:flex;justify-content:space-between;margin-bottom:18px}.stills-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:10px}.stills-grid figure{margin:0;overflow:hidden}.stills-grid figure:nth-child(1){grid-column:span 12}.stills-grid figure:not(:first-child){grid-column:span 3}.stills-grid img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/9}.project-nav{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:7vh;padding-top:24px;text-transform:uppercase}.site-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin:0 var(--pad);padding:24px 0 30px}.admin-note{font-size:12px;color:var(--muted)}
@media(max-width:760px){body{font-size:12px}.topbar{grid-template-columns:1fr auto;padding:24px 20px 0}.topbar .center{display:none}.wrap{padding:0 20px}.hero{display:block;padding-top:48px;min-height:auto}.hero-copy{margin-bottom:28px}.hero h1{font-size:42px}.intro{max-width:290px}.media-window{aspect-ratio:4/5}.portfolio{padding:50px 20px}.portfolio h2{font-size:36px}.project-toggle{grid-template-columns:52px 1fr auto;gap:8px}.project-toggle .title{font-size:14px}.project-row.open .project-panel{display:block}.project-preview{margin:10px 0 16px}.project-head{display:block}.project-page{padding:48px 20px}.project-head .media-window{aspect-ratio:4/3}.project-title{font-size:42px}.meta-table{margin:24px 0}.project-copy{margin:40px 0}.stills-grid{grid-template-columns:1fr 1fr}.stills-grid figure,.stills-grid figure:nth-child(1),.stills-grid figure:not(:first-child){grid-column:auto}.stills-grid figure:nth-child(1){grid-column:1/-1}.site-footer{margin:0 20px}}


/* V2 — editorial desktop landing */
@media(min-width:761px){
  .hero{grid-template-columns:22% 1fr;gap:3.2vw;align-items:center;min-height:72vh;padding-top:4.5vh;padding-bottom:4vh}
  .hero-copy{align-self:center;padding-bottom:2vh}
  .eyebrow{margin:0 0 12px;font-size:13px}
  .intro{max-width:245px;margin:0;font-size:13px;line-height:1.28}
  .landing-reel{aspect-ratio:1.30/1;max-height:66vh;background:#ddd}
  .portfolio{padding-top:2vh}
  .portfolio h2{font-size:clamp(40px,3.7vw,62px);line-height:.9;margin-bottom:10px}
}
.landing-reel iframe{position:absolute;inset:0;width:100%;height:100%;transform:scale(1.005)}
.media-label{z-index:2;font-size:11px;letter-spacing:.02em}
@media(max-width:760px){
  .hero-copy{margin-bottom:22px}
  .eyebrow{margin-bottom:14px}
  .intro{margin:0;line-height:1.35}
  .landing-reel{aspect-ratio:4/5}
  .media-label{right:14px;bottom:14px}
}


/* V3 — simplified landing + stronger header */
.topbar, .topbar a, .topbar .center, .topbar .right{font-weight:700 !important;}
@media(min-width:761px){
  .topbar{grid-template-columns:max-content max-content 1fr;column-gap:22px;}
}

/* V3.2 — Courier header, visibly heavier without changing typeface */
.topbar,
.topbar a,
.topbar .center,
.topbar .right {
  font-family: "Courier New", Courier, monospace !important;
  font-weight: 700 !important;
  -webkit-text-stroke: 0.18px currentColor;
  text-shadow: 0.18px 0 0 currentColor, -0.18px 0 0 currentColor;
}

/* V3.3 — unmistakably heavier Courier header */
.topbar > a,
.topbar .center > a,
.topbar .right {
  font-family: "Courier New", Courier, monospace !important;
  font-weight: 900 !important;
  -webkit-text-stroke: 0.42px currentColor !important;
  text-shadow:
    0.35px 0 0 currentColor,
    -0.35px 0 0 currentColor,
    0 0.35px 0 currentColor,
    0 -0.35px 0 currentColor !important;
}


/* V3.4 — header spacing + clean editorial reel window */
@media(min-width:761px){
  .topbar{column-gap:34px;}
  .landing-reel iframe{
    top:0;
    bottom:0;
    left:-18.35%;
    width:136.7%;
    height:100%;
    max-width:none;
    transform:none;
  }
}
.landing-reel{background:transparent;}
.landing-reel .media-label{right:20px;bottom:18px;}

/* V3.6 — align desktop year to reel edge + wider brand/nav spacing */
@media(min-width:761px){
  .topbar{column-gap:109px;position:relative;}
  .topbar .right{position:absolute;top:0;right:var(--pad);}
}

/* V3.6 — keep year on the same header baseline while aligning to reel edge */
@media(min-width:761px){
  .topbar .right{top:3vw;}
}


/* V3.7 — vertically center landing content in the space between header and footer */
@media(min-width:761px){
  .home .site{min-height:100svh;display:flex;flex-direction:column;}
  .home .site > main{flex:1;display:flex;min-height:0;}
  .home .hero{flex:1;width:100%;min-height:0;padding-top:2vh;padding-bottom:2vh;align-items:center;}
  .home .site-footer{margin-top:auto;}
}


/* V4 — project system */
.portfolio-index{padding-top:9vh}.portfolio-index h1{font-family:"Courier New",Courier,monospace;font-weight:900;-webkit-text-stroke:.3px currentColor;font-size:clamp(38px,4vw,66px);margin:0 0:28px}.project-toggle .title{font-family:"Courier New",Courier,monospace}.project-page>.back{display:inline-block;margin-bottom:5vh}.project-film{aspect-ratio:16/9;background:#111}.project-film iframe{width:100%;height:100%;border:0}.project-page .project-title{font-family:"Courier New",Courier,monospace;font-weight:900;font-size:clamp(32px,3.4vw,58px);line-height:1}.project-page .meta-table{line-height:1.45}.project-page .meta-table div{grid-template-columns:95px 1fr;gap:12px}.project-page .stills{margin-top:8vh}.project-page .stills-grid{gap:12px}.project-page .stills-grid img{aspect-ratio:auto;height:auto;object-fit:contain}.project-page .stills-grid figure:nth-child(1){grid-column:span 12}.project-page .stills-grid figure:not(:first-child){grid-column:span 4}.project-page .stills-grid figure:nth-child(4n+1):not(:first-child){grid-column:span 12}
@media(max-width:760px){.portfolio-index{padding-top:50px}.project-page>.back{margin-bottom:30px}.project-page .stills-grid figure,.project-page .stills-grid figure:nth-child(1),.project-page .stills-grid figure:not(:first-child){grid-column:1/-1}.project-page .meta-table div{grid-template-columns:90px 1fr}}

/* V4.2 — portfolio index refinement */
.portfolio-index{padding-top:9vh}
.portfolio-index h1{display:none!important}
.portfolio-index .project-toggle{
  width:100%;display:grid;grid-template-columns:18% 1fr auto;gap:20px;align-items:center;
  padding:14px 0;font:inherit;color:inherit;text-align:left;
}
.portfolio-index .project-toggle .title,
.portfolio-index .project-toggle .project-year{
  font-family:"Courier New",Courier,monospace;
  font-size:14px;
  line-height:1.25;
  font-weight:400;
}
.portfolio-index .project-toggle .title{display:inline-block;width:max-content;max-width:100%}
.portfolio-index .project-toggle .title:hover{text-decoration:underline;text-underline-offset:3px}
.portfolio-index .project-toggle .plus{
  appearance:none;-webkit-appearance:none;background:none;border:0;padding:8px 0 8px 16px;
  margin:0;font:inherit;color:inherit;cursor:pointer;
}
@media(max-width:760px){
  .portfolio-index .project-toggle{grid-template-columns:52px 1fr auto;gap:8px}
  .portfolio-index .project-toggle .title,.portfolio-index .project-toggle .project-year{font-size:12px}
}


/* V4.3 — final project template */
.project-page-final{padding-top:5vh}
.project-page-final>.back{margin-bottom:5vh;font-size:12px}
.project-intro{display:grid;grid-template-columns:20% 1fr;gap:var(--gap);align-items:start}
.project-info{padding-top:2px}
.project-kicker{font-size:12px;margin-bottom:18px;text-transform:uppercase}
.project-page-final .project-title{font-family:"Courier New",Courier,monospace;font-size:clamp(24px,2.25vw,40px);font-weight:900;-webkit-text-stroke:.2px currentColor;line-height:1.05;margin:0;max-width:280px}
.project-page-final .project-credits{margin-top:36px;font-size:12px;line-height:1.5}
.project-page-final .project-credits div{grid-template-columns:105px 1fr;gap:12px;margin-bottom:2px}
.project-page-final .project-film{aspect-ratio:16/9;background:#111}
.project-stills{margin-top:9vh!important;border-top:0;padding-top:0}
.project-page-final .stills-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
.project-page-final .stills-grid figure{margin:0;grid-column:span 6!important}
.project-page-final .stills-grid figure:nth-child(3n+1){grid-column:span 12!important}
.project-page-final .stills-grid img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
.project-page-final .project-nav{font-size:12px;margin-top:9vh}
@media(max-width:760px){
 .project-page-final{padding-top:42px}
 .project-intro{display:flex;flex-direction:column;gap:30px}
 .project-info{width:100%}
 .project-page-final .project-title{font-size:28px;max-width:none}
 .project-page-final .project-credits{margin-top:24px}
 .project-page-final .project-film{width:100%;aspect-ratio:16/9}
 .project-page-final .stills-grid{grid-template-columns:1fr;gap:10px}
 .project-page-final .stills-grid figure,.project-page-final .stills-grid figure:nth-child(3n+1){grid-column:1/-1!important}
}


/* V4.4 — stable landing + compact project stills + credit order */
.home .landing-reel iframe{visibility:visible!important;opacity:1!important;}
.project-page-final .project-stills{
  width:calc(80% - (var(--gap) * .2));
  margin-left:auto;
  margin-right:0;
}
.project-page-final .project-stills .stills-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.project-page-final .project-stills .stills-grid figure,
.project-page-final .project-stills .stills-grid figure:nth-child(3n+1){
  grid-column:auto!important;
}
.project-page-final .project-stills .stills-grid img{
  width:100%;
  height:auto;
  max-height:42vh;
  object-fit:contain;
  object-position:left top;
}
@media(max-width:760px){
  .project-page-final .project-stills{width:100%;margin-left:0;}
  .project-page-final .project-stills .stills-grid{grid-template-columns:1fr 1fr;gap:8px;}
  .project-page-final .project-stills .stills-grid figure,
  .project-page-final .project-stills .stills-grid figure:nth-child(3n+1){grid-column:auto!important;}
  .project-page-final .project-stills .stills-grid img{max-height:none;}
}


/* V4.5 — compact stills */
.project-page-final .project-stills{width:80%;margin-left:auto;margin-right:0;}
.project-page-final .project-stills .stills-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.project-page-final .project-stills .stills-grid figure,
.project-page-final .project-stills .stills-grid figure:nth-child(3n+1),
.project-page-final .project-stills .stills-grid figure:nth-child(4n+1){grid-column:auto!important;margin:0;}
.project-page-final .project-stills .stills-grid img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;}
@media(max-width:760px){
 .project-page-final .project-stills{width:100%;}
 .project-page-final .project-stills .stills-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
}


/* V4.6 — portfolio grouped by field */
.portfolio-grouped{padding-top:9vh;}
.portfolio-group{margin:0 0:8vh;}
.portfolio-group-title{
  margin:0 0:18px;
  font-family:"Courier New",Courier,monospace;
  font-size:12px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:0;
}
.portfolio-group-list{border-top:1px solid var(--line);}
.portfolio-group-list .project-row{border-bottom:1px solid var(--line);}
@media(max-width:760px){
  .portfolio-grouped{padding-top:50px;}
  .portfolio-group{margin-bottom:54px;}
  .portfolio-group-title{font-size:11px;margin-bottom:14px;}
}
