/* ==========================================================
   Jaze Ebreo — personal site styles ("night ink" edition)
   The same palette and type as The Reading Seasons, used
   quietly: one dark ground, one gold accent, no gradients
   except a faint glow. Change the colors below to re-theme.
   ========================================================== */
:root {
  --bg: #14121f;           /* night ink */
  --surface: #1d1a2c;      /* raised paper */
  --surface-2: #242036;
  --text: #f3ecdf;         /* warm paper white */
  --muted: #b7aec6;
  --line: rgba(243, 236, 223, .12);
  --line-strong: rgba(243, 236, 223, .22);
  --accent: #f2c14e;       /* gold, the house accent */
  --accent-ink: #231a3e;   /* text on gold */
  --accent-soft: rgba(242, 193, 78, .12);
  --radius: 16px;
  --max: 1080px;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Young Serif", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -120px, rgba(242, 193, 78, .07), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
strong, b { font-weight: 500; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: rgba(242, 193, 78, .45); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); margin: 3rem 0 1.1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
p { margin: 0 0 1rem; }
em { font-style: italic; }
ul { padding-left: 1.1rem; }
li::marker { color: var(--accent); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 10; }

/* small uppercase label, used above headings */
.eyebrow { color: var(--accent); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; margin-bottom: .8rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(20, 18, 31, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-head); font-size: 1.2rem; color: var(--text); text-decoration: none; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 400;
}
.nav-links a:hover { color: var(--text); background: rgba(243, 236, 223, .05); }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
/* The one playful thing in the menu: Reading Seasons gets its little color wheel */
.nav-links a[href$="reading/index.html"]::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: conic-gradient(from 200deg, #f2c14e, #e46a8c, #6fc7c9, #9ad17a, #f2c14e);
}
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; color: var(--text); font: inherit; cursor: pointer; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; padding: 8px 20px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
}

/* ---------- Sections ---------- */
main { padding: 48px 0 88px; }
.hero { padding: 40px 0 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.22rem; color: var(--muted); max-width: 38ch; }
.portrait {
  aspect-ratio: 4/5; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(70% 60% at 75% 15%, rgba(242, 193, 78, .16), transparent 70%),
    radial-gradient(60% 60% at 15% 90%, rgba(123, 108, 246, .14), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 16px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 28px; } .portrait { max-width: 280px; } }

.page-head { padding: 16px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin: 0; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  border: 1px solid var(--accent); cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .2s ease, border-color .2s ease;
}
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { transform: translateY(-2px); border-color: rgba(242, 193, 78, .45); }
.card p { color: var(--muted); margin: .5rem 0 0; font-size: .97rem; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(242, 193, 78, .3);
  padding: 2px 9px; border-radius: 999px; margin: 0 6px 8px 0;
}

/* ---------- Reading Seasons feature (home page) ---------- */
/* The one colorful card on the serious pages, as a doorway into the playful section. */
a.card.seasons-card {
  position: relative; overflow: hidden; border-color: transparent;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(242, 193, 78, .28), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(196, 92, 166, .30), transparent 60%),
    linear-gradient(160deg, #1b1846, #2b2366 60%, #3b2a5e);
}
a.card.seasons-card:hover { border-color: rgba(242, 193, 78, .6); }
.seasons-card h3 { font-size: 1.5rem; }
.seasons-card h3 em { font-style: normal; background: linear-gradient(90deg, #f2c14e, #e46a8c 50%, #6fc7c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seasons-card p { color: #d6cfe6; }
.seasons-card .hand { font-family: "Caveat", cursive; font-size: 1.35rem; color: #f2c14e; line-height: 1.1; margin-top: .6rem; }
.seasons-card .dots24 { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .9rem; }
.seasons-card .dots24 span { width: 9px; height: 9px; border-radius: 50%; background: rgba(243, 236, 223, .16); }
.seasons-card .dots24 span.on { background: var(--c); }
.seasons-card .dots24 span.now { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.grid-wide { grid-column: 1 / -1; }
@media (min-width: 760px) {
  a.card.seasons-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; padding: 30px; }
}

.prose { max-width: 68ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Resume timeline ---------- */
.job { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.job:first-of-type { border-top: 0; }
.job .when { color: var(--muted); font-size: .92rem; }
.job .org { font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.job ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.job li { margin-bottom: .5rem; }
.role + .role { margin-top: 1.25rem; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; gap: 6px; } }

.skills { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.skills ul { padding-left: 1.1rem; margin: .5rem 0 0; color: var(--muted); }

/* ---------- Writing list ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.post-list time { color: var(--muted); font-size: .85rem; letter-spacing: .04em; }
.post-list a { font-family: var(--font-head); font-size: 1.35rem; text-decoration: none; color: var(--text); }
.post-list a:hover { color: var(--accent); }

/* ---------- Forms ---------- */
form { display: grid; gap: 16px; max-width: 560px; }
label { font-weight: 500; font-size: .9rem; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; font-weight: 300; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; width: 100%;
}
select option { background: var(--surface); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.form-status { font-weight: 500; color: var(--accent); }

/* ---------- Social + footer ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1rem 0 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .92rem; }
.social a:hover { border-color: var(--accent); color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .88rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.placeholder { background: rgba(242, 193, 78, .16); color: #ffe8a3; padding: 0 4px; border-radius: 4px; }

@media print {
  .site-header, .site-footer, .btns { display: none; }
  body { background: #fff; color: #000; }
  .card { background: #fff; border-color: #ccc; }
  .card p, .job .when, .page-head p, .skills ul { color: #333; }
  .job .org, .tag, a { color: #000; }
}

/* ---------- Projects page ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.jump a { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .9rem; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.proj-section { padding-top: 2.5rem; scroll-margin-top: 72px; }
.proj-section + .proj-section { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.section-title { margin-top: 0; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 2.2rem 0 1rem; }
.group-head h3 { font-size: 1.35rem; margin: 0; }
.group-head span { color: var(--muted); font-size: .9rem; }
.card .links { margin-top: .9rem; font-size: .92rem; }
.card.personal { display: flex; flex-direction: column; }
.card .ph {
  aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 12px; margin-bottom: 1rem;
  background:
    radial-gradient(70% 70% at 80% 10%, rgba(242, 193, 78, .14), transparent 70%),
    radial-gradient(60% 60% at 10% 100%, rgba(123, 108, 246, .14), transparent 70%),
    var(--surface-2);
  border: 1px dashed var(--line-strong);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 12px;
}
img.ph { border-style: solid; padding: 0; }
.card.personal .tag { align-self: flex-start; }
