/*
Theme Name: Northstar Profile
Theme URI: https://example.com/northstar-profile
Author: Your Name
Description: A refined, accessible one-page portfolio and professional profile theme.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northstar-profile
Tags: one-column, custom-logo, custom-menu, featured-images, portfolio, accessibility-ready
*/

:root {
  --ink: #17211b;
  --muted: #65716a;
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --accent: #d9ff5b;
  --accent-dark: #183f2b;
  --line: rgba(23, 33, 27, .14);
  --shadow: 0 24px 70px rgba(23, 33, 27, .12);
  --radius: 26px;
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.7; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; padding: 10px 16px; clip: auto; color: #fff; background: var(--ink); border-radius: 8px; }
.wrap { width: var(--wrap); margin-inline: auto; }

.site-header { position: sticky; z-index: 100; top: 0; padding: 14px 0; background: rgba(245,242,234,.84); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); transition: .25s ease; }
.site-header.is-scrolled { border-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; color: var(--accent); background: var(--ink); border-radius: 50%; font-size: 13px; }
.custom-logo { display: block; max-height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.menu a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.menu a:hover, .menu a:focus { color: var(--ink); }
.menu-toggle { display: none; padding: 10px 13px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 12px; }

.hero { min-height: calc(100vh - 69px); display: grid; align-items: center; padding: 76px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); align-items: center; gap: clamp(44px,8vw,110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--accent-dark); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.hero h1 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px,8.2vw,112px); font-weight: 500; letter-spacing: -.07em; line-height: .92; }
.hero h1 em { position: relative; color: var(--accent-dark); font-weight: inherit; }
.hero-copy { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: clamp(18px,2vw,22px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,33,27,.18); }
.button.alt { color: var(--ink); background: transparent; border-color: var(--line); }
.portrait-wrap { position: relative; }
.portrait-card { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #dfe6da; border-radius: 180px 180px var(--radius) var(--radius); box-shadow: var(--shadow); }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { display: grid; height: 100%; place-items: center; background: linear-gradient(150deg,#cad8c9,#f0e8d8); }
.portrait-placeholder svg { width: 56%; color: rgba(23,63,43,.32); }
.status-card { position: absolute; right: -22px; bottom: 38px; max-width: 220px; padding: 18px 20px; background: var(--accent); border-radius: 18px; box-shadow: 0 16px 45px rgba(23,33,27,.15); font-size: 14px; font-weight: 800; line-height: 1.4; transform: rotate(-3deg); }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; background: var(--accent-dark); border-radius: 50%; box-shadow: 0 0 0 5px rgba(24,63,43,.1); }

.section { padding: clamp(80px,11vw,145px) 0; }
.section-label { margin: 0 0 32px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-title { max-width: 920px; margin: 0 0 55px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(39px,5.5vw,72px); font-weight: 500; letter-spacing: -.055em; line-height: 1.03; }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px,8vw,120px); }
.about-intro { color: var(--accent-dark); font-size: 22px; font-weight: 750; line-height: 1.45; }
.about-copy { color: var(--muted); font-size: clamp(18px,2vw,21px); }
.about-copy > :first-child { margin-top: 0; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 36px 0 0; list-style: none; }
.skills li { padding: 8px 14px; color: var(--ink); background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 750; }

.work-section { color: #f6f4ed; background: var(--ink); }
.work-section .section-label { color: #aab4ae; }
.projects { display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; }
.project { position: relative; grid-column: span 6; min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 32px; color: #fff; background: #254437; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); text-decoration: none; }
.project:nth-child(3n) { grid-column: span 12; min-height: 380px; }
.project::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 20%,rgba(0,0,0,.68)); z-index: 1; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project:hover img { transform: scale(1.045); }
.project-content { position: relative; z-index: 2; }
.project-meta { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.project h3 { margin: 8px 0 0; font-family: Georgia,serif; font-size: clamp(27px,3.5vw,43px); font-weight: 500; line-height: 1.08; }
.empty-work { grid-column: 1/-1; padding: 42px; color: #d7ded9; border: 1px dashed rgba(255,255,255,.25); border-radius: var(--radius); }

.contact-card { position: relative; overflow: hidden; padding: clamp(40px,7vw,88px); background: var(--accent); border-radius: calc(var(--radius) * 1.4); }
.contact-card::after { content: "↗"; position: absolute; right: 4%; bottom: -18%; color: rgba(24,63,43,.12); font-family: Georgia,serif; font-size: 280px; line-height: 1; }
.contact-card .section-title { position: relative; z-index: 1; max-width: 780px; margin-bottom: 30px; }
.contact-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 15px 28px; }
.contact-links a:not(.button) { font-weight: 800; }

.site-footer { padding: 30px 0 45px; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.entry-shell { width: min(760px,calc(100% - 40px)); margin: 80px auto; }
.entry-shell h1 { font-family: Georgia,serif; font-size: clamp(40px,6vw,70px); letter-spacing: -.05em; line-height: 1; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 69px 0 auto; display: none; padding: 24px 20px 35px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .menu { align-items: stretch; flex-direction: column; gap: 6px; }
  .menu a { display: block; padding: 12px; font-size: 18px; }
  .hero { min-height: auto; padding-top: 55px; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-wrap { width: min(82%,430px); margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .project, .project:nth-child(3n) { grid-column: 1/-1; min-height: 370px; }
}

@media (max-width: 520px) {
  :root { --wrap: min(100% - 28px,1160px); --radius: 20px; }
  .hero h1 { font-size: clamp(49px,17vw,76px); }
  .status-card { right: -8px; bottom: 18px; }
  .project { min-height: 330px; padding: 24px; }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
