/*
Theme Name: Ryan Ross Portfolio
Theme URI: https://www.ryanmichaelross.com/
Author: Milo
Description: Lightweight, content-driven portfolio theme for Ryan Ross.
Version: 1.0.0
*/
:root{--bg:#fcfcfc;--fg:#222;--muted:#575757;--line:#d8d8d5;--max:1130px;--mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*{box-sizing:border-box}html{background:var(--bg);font-size:16px}body{margin:0;background:var(--bg);color:var(--fg);font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:400;line-height:1.45}a{color:inherit;text-decoration:none}a:hover{opacity:.58}.site-shell{width:min(calc(100% - 56px),var(--max));margin:0 auto}.site-header{padding:34px 0 16px}.site-brand{font-size:clamp(2.7rem,7vw,5.5rem);font-weight:300;letter-spacing:-.07em;line-height:.9}.site-nav{display:flex;flex-wrap:wrap;gap:10px 25px;margin-top:23px;font-size:.7rem;letter-spacing:.23em;text-transform:uppercase}.site-nav a{white-space:nowrap}.site-footer{padding:80px 0 34px;color:var(--muted);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase}.front-home{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.front-home .site-brand{font-size:clamp(3.8rem,10vw,7rem)}.front-home .site-nav{justify-content:center;flex-direction:column;gap:17px;font-size:.75rem}.page-head{padding:72px 0 46px}.page-head h1,.detail-head h1{font-size:clamp(2rem,5vw,4.2rem);font-weight:300;letter-spacing:-.05em;line-height:1;margin:0 0 18px}.page-intro{max-width:650px;color:var(--muted);font-size:1rem}.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 18px}.project-card{min-width:0}.project-thumb{display:block;background:#e7e7e4;aspect-ratio:4/3;overflow:hidden}.project-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.project-card:hover img{transform:scale(1.025)}.project-card h2{font-size:1rem;font-weight:400;margin:10px 0 2px}.project-meta{color:var(--muted);font-size:.75rem}.detail-head{padding:72px 0 32px;max-width:850px}.detail-meta{display:flex;flex-wrap:wrap;gap:8px 24px;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.12em}.detail-copy{max-width:760px;font-size:1.05rem}.detail-copy p{margin:0 0 1em}.detail-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:36px}.detail-media img{display:block;width:100%;height:auto}.detail-video{position:relative;aspect-ratio:16/9;margin-top:36px}.detail-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.back-link{display:inline-block;margin-top:48px;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase}.content-prose{max-width:760px}.content-prose h2{font-weight:300;font-size:1.8rem;margin:2.2em 0 .6em}.content-prose img{max-width:100%;height:auto}.content-prose a{text-decoration:underline;text-underline-offset:3px}@media(max-width:760px){.site-shell{width:min(calc(100% - 32px),var(--max))}.site-header{padding-top:24px}.site-nav{gap:9px 16px;letter-spacing:.15em}.page-head,.detail-head{padding-top:48px}.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 12px}.detail-media{grid-template-columns:1fr;gap:12px}.project-card h2{font-size:.9rem}}@media(max-width:460px){.portfolio-grid{grid-template-columns:1fr}.front-home .site-brand{font-size:3.7rem}}

/* Typography matched to the reference site (Adobe Typekit families). */
body{font-family:"Lato",Arial,sans-serif;font-size:15px;font-weight:300;line-height:1.8}
.site-brand,.page-head h1,.archive-head h1,.detail-head h1,.project-card h2,.content-prose h2{font-family:"Lato",Arial,sans-serif}
.site-brand{font-size:42px;font-weight:700;letter-spacing:1px;line-height:50.4px}
.site-nav{font-family:"Lato",Arial,sans-serif;font-size:15px;font-weight:300;letter-spacing:0;line-height:26px;text-transform:uppercase}
.site-header{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:85px 0 40px}
.site-header .site-nav{margin-top:0;gap:0}
.front-home .site-brand{font-family:"Agdasima",Impact,sans-serif;font-size:6.4rem;font-weight:400;letter-spacing:0;line-height:1.04}
.front-home .site-nav{font-family:"Lato",Arial,sans-serif;font-size:14px;font-weight:500;line-height:28px;letter-spacing:normal;text-transform:uppercase;margin-top:14px;gap:0}
.page-head h1,.archive-head h1,.detail-head h1{font-family:"Lato",Arial,sans-serif;font-size:42px;font-weight:700;letter-spacing:1px;line-height:50.4px}
.project-card h2{font-family:"Lato",Arial,sans-serif;font-size:24px;font-weight:300;letter-spacing:1.44px;line-height:28.8px}
.project-meta,.detail-meta,.detail-copy,.content-prose{font-family:"Lato",Arial,sans-serif;font-size:15px;font-weight:300;line-height:1.8;letter-spacing:0}
.detail-copy p{margin:0 0 1em}
@media(max-width:900px){
  /* Squarespace switches the title bar to two rows before the links become
     crowded: logo first, then a full-width wrapping navigation row. */
  .site-header{display:block;padding-top:85px}
  .site-header .site-nav{display:flex;width:100%;margin-top:0;gap:0;flex-wrap:wrap;align-items:flex-start}
  .site-header .site-nav a{display:inline-block;padding:12.2px 0;line-height:26px;margin-right:24px}
  .detail-layout{grid-template-columns:1fr;gap:28px;margin-top:34px}
  .detail-layout .detail-gallery,.detail-layout .detail-copy{grid-column:1;grid-row:auto;width:100%;max-width:100%}
  .detail-layout .detail-copy{order:2}
  .detail-layout .detail-gallery{order:1}
  .detail-copy h1{font-size:24px;line-height:28.8px;margin:0 0 12px}
  .detail-copy .project-description{font-size:15px;line-height:27px;overflow-wrap:anywhere;word-break:normal}
}
@media(max-width:760px){
  .site-shell{width:min(calc(100% - 40px),var(--max))}
  .site-header{padding-top:75px}
  .site-header .site-nav{margin-top:0}
  .site-brand{font-size:36px;line-height:43.2px}
  .page-head h1,.archive-head h1{font-size:30px;line-height:45px}
  .project-card h2{font-size:20px;line-height:24px;margin:10px 0 2px}
  .front-home .site-brand{font-size:4rem}
}


/* Capitalization matched to the reference site's desktop presentation. */
.site-brand,.page-head h1,.detail-head h1,.project-card h2{ text-transform:uppercase }

/* Inner-page nav links match reference typography: 15px light, normal spacing, mixed case. */
@media(min-width:761px){
  .site-header .site-nav{font-size:15px;font-weight:300;letter-spacing:normal;line-height:27px;text-transform:none;gap:24px}
}

/* Reference desktop geometry: compact title bar, wider outer margins, and
   gallery titles sitting directly below their thumbnails. */
@media(min-width:761px){
  .site-shell{width:min(calc(100% - 150px),1130px)}
  .site-header{padding:85px 0 40px;gap:24px;align-items:center}
  .site-brand{display:inline-block;flex:0 0 auto;line-height:50.4px}
  .site-header .site-nav{font-family:"Lato",Arial,sans-serif;font-size:15px;font-weight:300;line-height:27px;letter-spacing:normal;text-transform:none;gap:24px;align-items:center}
  .site-header .site-nav a{display:inline-block;padding:12.2px 0;line-height:26px}
  .project-card h2{margin:0 0 12px;color:#222;font-weight:300}
  .page-head h1,.archive-head h1{font-size:30px;font-weight:300;letter-spacing:1.8px;line-height:45px}
  .detail-layout{grid-template-columns:minmax(0,850px) 250px;gap:0 15px;margin-top:146px}
  .detail-layout .detail-copy{grid-column:2;grid-row:1;width:250px}
  .detail-copy h1{font-family:"Lato",Arial,sans-serif;font-size:24px;font-weight:300;letter-spacing:1.44px;line-height:28.8px;text-transform:uppercase;margin:0 0 12px;color:#222}
  .detail-copy .project-description{font-family:"Lato",Arial,sans-serif;font-size:15px;font-weight:300;line-height:27px}
  .detail-copy .project-description p{margin:0 0 15px}
  .detail-layout .detail-gallery{grid-column:1;grid-row:1}

}


/* Project detail improvements */
.detail-external{text-decoration:underline;text-underline-offset:3px}
.detail-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:clamp(28px,5vw,76px);align-items:start;margin-top:34px}
.detail-layout .detail-gallery{width:100%;margin:0;display:flex;flex-direction:column;gap:28px;grid-column:1;grid-row:1}
.detail-layout .detail-copy{max-width:none;grid-column:2;grid-row:1}
.media-item{margin:0;background:transparent}
.media-link{display:block;overflow:hidden}
.media-link img{display:block;width:100%;height:auto;object-fit:contain;object-position:center}
.detail-image figcaption{margin-top:7px;color:var(--muted);font-family:var(--mono);font-size:.68rem;letter-spacing:.04em}
.detail-video{position:relative;width:100%;aspect-ratio:16/9;margin:0;background:#111}
.detail-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.detail-nav{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center;justify-content:space-between;margin-top:40px;padding-top:22px;border-top:1px solid var(--line)}
.detail-prevnext{display:flex;gap:16px 22px;flex-wrap:wrap;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase}
.detail-prevnext a{white-space:nowrap}
.back-link{margin:0}
@media(max-width:900px){.detail-layout{grid-template-columns:1fr;gap:28px}.detail-layout .detail-gallery,.detail-layout .detail-copy{grid-column:1;grid-row:auto}.detail-layout .detail-gallery{gap:12px}}
@media(max-width:760px){.detail-gallery{grid-template-columns:1fr;gap:12px}}

/* Final desktop detail geometry override: the reference keeps the media
   column at 850px and places the 250px title/copy column at x=940px on a
   1280px viewport. */
@media(min-width:901px){
  .detail-layout{grid-template-columns:850px 250px;column-gap:15px;row-gap:0;margin-top:90px}
  .detail-layout .detail-gallery{grid-column:1;grid-row:1;width:850px}
  .detail-layout .detail-copy{grid-column:2;grid-row:1;width:250px}
}

/* Final responsive override: keep the header and detail copy contained at
   the same breakpoint where the reference changes to a stacked layout. */
@media(max-width:900px){
  .site-header{display:block;padding-top:75px}
  .site-header .site-nav{display:flex;width:100%;margin-top:0;gap:0;flex-wrap:wrap;align-items:flex-start}
  .site-header .site-nav a{display:inline-block;padding:12.2px 0;line-height:26px;margin-right:24px}
  .detail-layout{display:grid;grid-template-columns:1fr;gap:28px;margin-top:34px}
  .detail-layout .detail-gallery,.detail-layout .detail-copy{grid-column:1;grid-row:auto;width:100%;max-width:100%}
  .detail-layout .detail-gallery{order:1}
  .detail-layout .detail-copy{order:2}
  .detail-copy h1{font-family:"Jost",Arial,sans-serif;font-size:24px;font-weight:300;letter-spacing:1.44px;line-height:28.8px;text-transform:uppercase;margin:0 0 12px;color:#222}
  .detail-copy h1{font-family:"Lato",Arial,sans-serif;font-size:24px;font-weight:300;letter-spacing:1.44px;line-height:28.8px;text-transform:uppercase;margin:0 0 12px;color:#222}
  .detail-copy .project-description{font-family:"Lato",Arial,sans-serif;font-size:15px;line-height:27px;overflow-wrap:anywhere;word-break:normal}
}
@media(max-width:760px){
  .site-shell{width:min(calc(100% - 40px),var(--max))}
  .site-header{padding-top:75px}
  .site-brand{font-size:36px;line-height:43.2px}
  .page-head h1,.archive-head h1{font-size:30px;line-height:45px}
  .project-card h2{font-size:20px;line-height:24px;margin:10px 0 2px}
  .front-home .site-brand{font-size:4rem}
}

/* Mobile navigation mirrors the reference: below 760px the wrapping links
   are replaced by one MENU control and revealed on demand. Keep the nav face
   consistent with the desktop bar; only its layout changes. */
.site-nav,.front-home .site-nav,.site-nav a,.menu-toggle{font-family:"Lato",Arial,sans-serif}
.menu-toggle{display:none;border:0;background:transparent;color:inherit;padding:0;font-size:13px;font-weight:400;line-height:26px;letter-spacing:1px;text-transform:uppercase;cursor:pointer}
@media(max-width:760px){
  .site-header .menu-toggle,.front-home .menu-toggle{display:inline-block}
  .site-header .site-nav,.front-home .site-nav{display:none}
  .site-header .site-nav.is-open,.front-home .site-nav.is-open{display:flex}
  .site-header .menu-toggle{margin-top:0;padding:12.2px 0}
  .site-header .site-nav.is-open{margin-top:0;flex-direction:column;align-items:flex-start;gap:0}
  .site-header .site-nav.is-open a{margin:0;padding:7px 0;line-height:26px}
  .front-home .menu-toggle{margin-top:14px}
  .front-home .site-nav.is-open{margin-top:14px;flex-direction:column;align-items:center;gap:14px}
}
