/*
Theme Name: Niels Portfolio
Theme URI: https://portfolio.arnbak.nl/
Author: Niels Arnbak / OpenAI
Description: A lean, text-led portfolio theme inspired by the spatial simplicity of Björk, built around Copy, Content and Catalyst.
Version: 1.2.0
Tested up to: 7.1
Requires at least: 6.4
Requires PHP: 7.4
Update URI: false
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: niels-portfolio
*/

:root {
  --ink: #111111;
  --muted: #6d6d6d;
  --paper: #fafafa;
  --mist: #e5e5e5;
  --mist-2: #c8c8c8;
  --line: #dedede;
  --sidebar: 21rem;
  --content-max: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--muted); }
img { max-width: 100%; height: auto; }

.site-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.site-sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  border-right: 1px solid var(--line);
  padding: 3rem 3rem 2rem;
  display: flex; flex-direction: column;
  background: rgba(250,250,250,.96);
}
.brand-mark { width: 7.25rem; display: block; margin: 0 0 1.25rem; }
.brand-name { font-size: 1.6rem; letter-spacing: .12em; line-height: 1.1; margin: 0; font-weight: 500; }
.brand-roles { margin: .65rem 0 0; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.angled-c { display: inline-block; transform-origin: 50% 58%; font-weight: inherit; }
.c-copy { transform: rotate(-14deg); }
.c-content { transform: rotate(12deg); }
.c-catalyst { transform: rotate(-7deg); }

.site-nav { margin-top: 3.4rem; }
.site-nav h2 { font-size: .82rem; margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .06em; }
.site-nav ul { list-style: none; padding: 0; margin: 0 0 2.3rem; }
.site-nav li { margin: 0 0 .7rem; }
.site-nav a { text-decoration: none; color: #343434; }
.site-nav a:hover, .site-nav .current, .site-nav .current-menu-item > a { color: var(--ink); }
.site-nav .secondary { margin-top: 2rem; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 1.5rem; color: var(--muted); font-size: .72rem; display: flex; gap: .8rem; align-items: center; }
.site-footer img { width: 2.35rem; }

.site-main { min-width: 0; padding: 3.4rem clamp(2rem, 6vw, 6.5rem) 5rem; }
.main-inner { width: min(100%, var(--content-max)); }
.intro { font-size: clamp(1.85rem, 3.1vw, 3rem); line-height: 1.17; letter-spacing: -.035em; max-width: 17.5em; margin: 0 0 3.7rem; font-weight: 450; }

.work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.work-filters { display: flex; gap: 2.15rem; align-items: end; flex-wrap: wrap; }
.work-filters a { text-decoration: none; padding: 0 0 .78rem; color: var(--muted); font-size: .92rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid transparent; }
.work-filters a:hover, .work-filters a.active { color: var(--ink); border-color: var(--ink); }
.all-three { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .85rem; text-decoration: none; padding-bottom: .72rem; white-space: nowrap; }
.all-three img { width: 1.9rem; }

.work-list { border-top: 0; }
.work-card { display: grid; grid-template-columns: 15rem minmax(14rem, 1.25fr) minmax(12rem, .9fr); gap: 2.4rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.work-thumb { aspect-ratio: 1.75 / 1; background: #f1eee8; display: grid; place-items: center; overflow: hidden; text-decoration: none; }
.work-thumb img { width: 100%; height: 100%; object-fit: contain; }
.work-thumb.placeholder { padding: 1.2rem; font-size: 1.3rem; line-height: 1; letter-spacing: -.025em; font-weight: 650; }
.work-title { margin: 0 0 .55rem; font-size: 1.28rem; line-height: 1.2; }
.work-title a { text-decoration: none; }
.work-excerpt { margin: 0; max-width: 34rem; }
.work-meta { align-self: start; padding-top: .1rem; color: var(--muted); font-size: .85rem; }
.area-row { display: flex; flex-wrap: wrap; gap: .42rem .68rem; margin: 0 0 .42rem; }
.area-label { color: #555; text-decoration: none; text-transform: uppercase; letter-spacing: .035em; }
.area-label .angled-c { color: var(--ink); font-size: 1.55em; line-height: .7; margin-right: -.06em; }
.tag-row { color: var(--muted); line-height: 1.45; }

.single-head { max-width: 55rem; border-bottom: 1px solid var(--line); padding-bottom: 1.35rem; margin-bottom: 2.3rem; }
.back-link { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; margin-bottom: 1.2rem; }
.single-title { margin: 0 0 1rem; font-size: clamp(2.2rem, 4.5vw, 4.2rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 500; }
.single-meta { color: var(--muted); font-size: .86rem; }
.project-layout { display: grid; grid-template-columns: minmax(0, 44rem) minmax(12rem, 18rem); gap: 4rem; align-items: start; }
.project-content { font-size: 1.05rem; }
.project-content > *:first-child { margin-top: 0; }
.project-content h2, .project-content h3 { line-height: 1.2; margin-top: 2.4em; }
.project-content p { margin: 0 0 1.35em; }
.project-content img { width: auto; max-width: 100%; height: auto; }
.project-aside { position: sticky; top: 2rem; }
.project-featured { margin: 0 0 1.3rem; background: #f1eee8; padding: .6rem; }
.project-featured img { display: block; width: 100%; height: auto; }
.project-tax { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: .85rem; }
.project-tax strong { color: var(--ink); display: block; margin-bottom: .4rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; border-top: 1px solid var(--line); margin-top: 4rem; padding-top: 1.2rem; font-size: .85rem; }
.project-nav .next { text-align: right; }

.page-title { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; margin: 0 0 2rem; }
.page-content { max-width: 48rem; font-size: 1.06rem; }
.empty-state { border: 1px solid var(--line); padding: 2rem; color: var(--muted); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  :root { --sidebar: 17rem; }
  .site-sidebar { padding: 2.3rem 2rem 1.7rem; }
  .work-card { grid-template-columns: 11rem minmax(12rem, 1fr) minmax(10rem, .8fr); gap: 1.6rem; }
  .brand-roles { white-space: normal; }
}
@media (max-width: 820px) {
  .site-shell { display: block; }
  .site-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1.3rem; align-items: center; }
  .brand-mark { width: 4.5rem; margin: 0; grid-row: span 2; }
  .brand-name { font-size: 1.25rem; }
  .brand-roles { font-size: .68rem; margin-top: .35rem; }
  .site-nav { grid-column: 1 / -1; margin-top: 1.5rem; }
  .site-nav h2 { display: none; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin: 0; }
  .site-nav li { margin: 0; }
  .site-nav .secondary { margin-top: .85rem; }
  .site-footer { display: none; }
  .site-main { padding: 2.3rem 1.5rem 4rem; }
  .intro { margin-bottom: 2.6rem; }
  .work-toolbar { align-items: end; }
  .work-filters { gap: 1.2rem; }
  .work-card { grid-template-columns: 8rem 1fr; gap: 1rem 1.3rem; }
  .work-meta { grid-column: 2; }
  .project-layout { grid-template-columns: 1fr; gap: 2rem; }
  .project-aside { position: static; order: -1; max-width: 18rem; }
}
@media (max-width: 560px) {
  .work-toolbar { display: block; }
  .all-three { padding: .6rem 0 .8rem; }
  .work-card { grid-template-columns: 1fr; padding: 1.5rem 0; }
  .work-thumb { width: min(100%, 18rem); }
  .work-meta { grid-column: auto; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav .next { text-align: left; }
}
