/*
Theme Name: Celina Kroder Portfolio
Theme URI: https://celinakroder.com
Author: Celina Kroder
Description: Minimal, responsive portfolio theme for a designer. Projects, pages, images and text are editable in WordPress.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: celina-portfolio
*/

:root {
  --paper: #fff;
  --ink: #191919;
  --muted: #777;
  --line: #e8e8e8;
  --gutter: clamp(18px, 3.4vw, 52px);
  --font: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--font); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #7c928b; outline-offset: 4px; }
.site-header { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px var(--gutter); background: #fff; }
.site-brand { display: flex; align-items: baseline; gap: 22px; }
.site-label { font-size: 14px; }
.site-name { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.site-nav { display: flex; gap: clamp(14px, 2vw, 30px); font-size: 14px; }
.site-nav a { transition: opacity .2s ease; }
.site-nav a:hover { opacity: .55; }
.site-main { min-height: calc(100vh - 132px); padding: 0 var(--gutter) 48px; }
.work-section { padding-top: clamp(52px, 8vw, 112px); }
.work-carousel { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.work-carousel::-webkit-scrollbar { display: none; }
.work-card { display: block; flex: 0 0 clamp(145px, 15.7vw, 250px); scroll-snap-align: start; }
.work-card-caption { display: block; min-height: 28px; font-size: 13px; line-height: 1.35; }
.work-card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #ececec; }
.work-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work-card:hover img { transform: scale(1.025); }
.work-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #999; background: linear-gradient(140deg, #e9e9e7, #f3f3f1); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.work-card-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 20px; color: #fff; text-align: center; background: rgba(20,20,20,.42); opacity: 0; transition: opacity .25s ease; }
.work-card:hover .work-card-overlay, .work-card:focus-visible .work-card-overlay { opacity: 1; }
.work-card-year, .work-card-open { font-size: 12px; }
.work-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: clamp(30px, 5vw, 72px); }
.intro-copy { max-width: 360px; margin: 0; font-size: 12px; line-height: 1.7; }
.carousel-controls { display: flex; gap: 9px; }
.carousel-arrow { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; font-size: 17px; cursor: pointer; transition: opacity .2s ease, background .2s ease; }
.carousel-arrow:hover:not(:disabled) { background: #f4f4f2; }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.work-empty { min-height: 200px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.page-heading { margin: 34px 0 28px; font-size: clamp(28px, 4vw, 52px); line-height: 1.08; font-weight: 400; letter-spacing: -.045em; }
.project-layout { width: min(1180px, calc(100% - 2 * var(--gutter))); margin: clamp(48px, 8vw, 105px) auto 50px; display: grid; grid-template-columns: 1fr .88fr; gap: clamp(28px, 4.5vw, 68px); align-items: start; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-image { margin: 0; overflow: hidden; background: #eee; }
.project-image img { display: block; width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.project-image-main { grid-column: 1 / -1; aspect-ratio: 1.48 / 1; }
.project-image:not(.project-image-main) { aspect-ratio: 1 / 1; }
.project-copy h1 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 400; }
.project-year { color: var(--muted); font-size: 13px; }
.project-description { max-width: 620px; margin: 28px 0 0; font-size: 15px; line-height: 1.8; }
.project-content { max-width: 620px; margin: 28px 0 0; }
.project-content p { max-width: 650px; font-size: 15px; line-height: 1.8; }
.project-content img { max-width: 100%; height: auto; }
.project-content figure { margin-top: 28px; margin-bottom: 28px; }
.project-content .wp-block-gallery { gap: 12px; }
.project-content .wp-block-gallery figure { margin: 0; }
.work-back { display: block; width: fit-content; margin: 60px auto 20px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 13px; }
.page-layout { max-width: 1180px; margin: 44px auto 80px; }
.page-layout > h1 { margin: 0 0 40px; font-size: clamp(30px, 4.4vw, 54px); font-weight: 400; line-height: 1.05; letter-spacing: -.045em; }
.page-layout .entry-content { font-size: 15px; line-height: 1.75; }
.page-layout .entry-content > * { max-width: 900px; }
.page-layout .wp-block-columns { max-width: none; gap: clamp(24px, 5vw, 70px); }
.page-layout .wp-block-image img { display: block; height: auto; }
.page-template-page-vita .entry-content > .wp-block-columns:first-child { align-items: flex-start; gap: clamp(24px, 4vw, 55px); }
.page-template-page-vita .entry-content > .wp-block-columns:first-child > .wp-block-column:first-child { flex-basis: 27%; }
.page-template-page-vita .entry-content > .wp-block-columns:first-child > .wp-block-column:last-child { flex-basis: 73%; }
.page-template-page-vita .entry-content > .wp-block-columns:first-child > .wp-block-column:first-child .wp-block-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.page-template-page-vita .entry-content .wp-block-columns .wp-block-columns { gap: 18px; }
.page-template-page-vita .entry-content .wp-block-columns .wp-block-columns .wp-block-column { flex-basis: 33.333%; }
.page-template-page-vita .wp-block-table { font-size: 13px; }
.page-template-page-vita .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 8px 10px 0; vertical-align: top; }
.page-template-page-vita .entry-content .wp-block-gallery { display: flex; flex-wrap: nowrap; gap: 9px; overflow-x: auto; padding-bottom: 4px; }
.page-template-page-vita .entry-content .wp-block-gallery figure { flex: 0 0 calc((100% - 54px) / 7); margin: 0; }
.page-template-page-vita .entry-content .wp-block-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 16px var(--gutter) 24px; color: var(--muted); font-size: 11px; }
.error-page { max-width: 760px; margin: 14vh auto; padding: 0 var(--gutter); }
.error-page h1 { font-size: clamp(32px, 5vw, 62px); font-weight: 400; }
@media (max-width: 700px) {
  .site-header { min-height: 72px; }
  .site-brand { gap: 10px; }
  .site-label { font-size: 12px; }
  .site-name { font-size: 13px; }
  .site-nav { gap: 15px; font-size: 13px; }
  .work-carousel { gap: 10px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
.work-card { flex-basis: min(72vw, 280px); }
  .work-card-caption { min-height: 26px; font-size: 12px; }
  .work-bottom { align-items: flex-start; }
  .intro-copy { max-width: 260px; font-size: 11px; }
  .carousel-controls { display: none; }
  .work-card-overlay { inset: auto 0 0; min-height: 52px; align-items: flex-start; justify-content: center; padding: 8px 10px; text-align: left; opacity: 1; background: linear-gradient(0deg, rgba(0,0,0,.58), transparent); }
  .project-layout { grid-template-columns: 1fr; margin-top: 32px; }
  .project-copy { grid-row: 1; }
  .project-gallery { grid-row: 2; }
  .project-description, .project-content { margin-top: 18px; }
  .page-layout { margin-top: 28px; }
  .page-template-page-vita .entry-content > .wp-block-columns:first-child { display: grid; grid-template-columns: minmax(110px, .36fr) 1fr; gap: 20px; }
  .page-template-page-vita .entry-content > .wp-block-columns:first-child > .wp-block-column { width: auto; }
  .page-template-page-vita .entry-content .wp-block-columns .wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-template-page-vita .entry-content .wp-block-gallery figure { flex-basis: 58px; }
  .site-footer { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
