/*
Theme Name: Steffen Dieckow
Author: Steffen Dieckow
Description: Custom portfolio theme for Steffen Dieckow.
Version: 0.1.0
Text Domain: steffen
*/

:root {
    --paper: #f7f5f0;
    --ink: #1c211e;
    --muted: #68706a;
    --line: #d8d8d0;
    --accent: #3d5145;
    --display: Iowan Old Style, Baskerville, "Times New Roman", serif;
    --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --page: min(100% - 3rem, 76rem);
    --reading: min(100% - 3rem, 44rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header { width: var(--page); margin: 0 auto; min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.site-branding { flex: 1 1 auto; min-width: 0; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 3rem; width: auto; }
.site-title { font-family: var(--display); font-size: 1.25rem; font-weight: 400; letter-spacing: .01em; text-decoration: none; }
.primary-navigation ul, .footer-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.primary-navigation a { color: var(--ink); font-size: .78rem; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.primary-navigation .current-menu-item a, .primary-navigation a:hover { color: var(--accent); }
.menu-toggle { display: none; }

.site-main { min-height: 55vh; }
.entry { padding: clamp(4rem, 9vw, 8rem) 0; }
.entry-header, .entry-content > * { width: var(--reading); margin-left: auto; margin-right: auto; }
.entry-header { margin-bottom: 3rem; }
.entry-title, h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
.entry-title, h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); letter-spacing: -.035em; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 3.5rem 0 1rem; }
h3 { font-size: 1.65rem; margin: 2.5rem 0 .5rem; }
p { margin: 0 0 1.35rem; }
.entry-content > .alignwide { width: var(--page); }
.entry-content > .alignfull { width: 100%; }
.entry-content > .wp-block-image, .entry-content > .wp-block-gallery { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.entry-content > .wp-block-image.alignfull, .entry-content > .wp-block-cover.alignfull, .entry-content > .wp-block-group.alignfull { width: 100%; }
.entry-content figcaption { color: var(--muted); font-size: .8rem; margin-top: .7rem; }
.entry-content .wp-block-cover { min-height: min(78vh, 62rem); }
.entry-content .wp-block-cover__inner-container { max-width: 56rem; padding: 2rem; }
.entry-content .wp-block-cover h1, .entry-content .wp-block-cover h2 { color: #fff; }
.entry-content .wp-block-quote { border-left: 1px solid var(--accent); font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; margin-top: 3rem; margin-bottom: 3rem; padding-left: 1.5rem; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-top: 4rem; margin-bottom: 4rem; }
.entry-content .wp-block-button__link { background: var(--accent); border-radius: 0; font-size: .8rem; letter-spacing: .08em; padding: .9rem 1.2rem; text-transform: uppercase; }
.entry-content .wp-block-file { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.entry-content .wp-block-file__button { background: var(--accent); border-radius: 0; }

.project-grid { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem) 2rem; }
.project-card { border-top: 1px solid var(--line); padding-top: 1rem; }
.project-card__image { aspect-ratio: 4 / 3; background: #e8e6df; margin-bottom: 1.2rem; overflow: hidden; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.025); }
.project-card__type { color: var(--muted); font-size: .75rem; letter-spacing: .1em; margin: 0 0 .5rem; text-transform: uppercase; }
.project-card h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 .75rem; }
.project-card h2 a { text-decoration: none; }
.project-card p { max-width: 34rem; }
.project-single .entry-content { margin-top: 3rem; }
.project-hero { width: var(--page); margin: 0 auto 3rem; }
.project-hero img { width: 100%; max-height: 75vh; object-fit: cover; }

.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 0 3rem; }
.footer-inner { width: var(--page); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.footer-contact { margin: 0; }
.footer-contact a { text-decoration: none; }
.footer-navigation a { color: var(--muted); font-size: .8rem; text-decoration: none; }

.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; word-wrap: normal; }
.screen-reader-text:focus { background: var(--paper); clip: auto !important; clip-path: none; color: var(--ink); display: block; height: auto; left: .5rem; padding: .8rem; top: .5rem; width: auto; z-index: 100000; }

@media (max-width: 700px) {
    :root { --page: min(100% - 2rem, 76rem); --reading: min(100% - 2rem, 44rem); }
    .site-header { min-height: 5rem; gap: 1rem; }
    .primary-navigation ul { gap: .8rem; justify-content: flex-end; }
    .primary-navigation a { font-size: .69rem; letter-spacing: .06em; }
    .entry { padding: 3.5rem 0; }
    .project-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
}
