/* Light theme only, deliberately — no toggle, no prefers-color-scheme block. */
:root {
  --ink: #1c1c1e;
  --ink-soft: #55565b;
  --line: #e3e3e6;
  --paper: #f7f7f5;
  --card: #ffffff;
  --accent: #b45309;
  --accent-soft: #fef3e2;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }

.site-head { margin-bottom: 2rem; }
.site-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.015em;
  margin: 0 0 .4rem;
}
.role { margin: 0; color: var(--ink-soft); font-size: .975rem; }
.role.sub { font-size: .9rem; opacity: .85; }

.panel {
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--card);
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 2px rgba(16, 16, 20, .04);
}
.panel-row { display: flex; gap: 1.15rem; padding: 1.4rem 1.5rem; }
.panel-icon {
  flex: 0 0 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: .6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 1.25rem; color: var(--ink-soft);
}
.panel-body { flex: 1 1 auto; min-width: 0; }
.panel-body h2 { font-size: 1.1rem; font-weight: 600; margin: .1rem 0 .85rem; }
.lede { color: var(--ink-soft); font-size: .925rem; margin-bottom: 1rem; }

.links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
/* The action sits at the end of its row, away from the reference links
   beside it, so both panels put the thing you press in the same place. */
.links .btn-go { margin-left: auto; }
.app-picker .btn-go { margin-left: auto; }
.btn-go .bi { margin-left: .3rem; }
/* On a phone the picker row is tight, and without these the label and
   its icon broke onto two lines inside the button. */
.btn-go { white-space: nowrap; }
.app-picker .form-select { min-width: 0; }

.contact { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px dashed var(--line); }
.btn-gate {
  background: var(--accent-soft);
  border: 1px solid #f0c78a;
  color: var(--accent);
  font-size: .875rem; font-weight: 500;
}
.btn-gate:hover { background: #fde8cc; color: var(--accent); }
.gate-widget { margin-top: .85rem; }
.gate-note { margin: .75rem 0 0; font-size: .9rem; }
.gate-note code {
  background: var(--paper); border: 1px solid var(--line);
  padding: .2rem .45rem; border-radius: .3rem; color: var(--ink);
}

.accordion-button { font-size: .95rem; font-weight: 500; }
.accordion-button:not(.collapsed) { background: var(--paper); color: var(--ink); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-item { border-color: var(--line); border-radius: .5rem; overflow: hidden; }
.accordion-body { font-size: .9rem; color: var(--ink-soft); }

.site-foot { margin-top: 2.5rem; font-size: .825rem; color: var(--ink-soft); }
.site-foot p { margin: 0; }

@media (max-width: 480px) {
  .panel-row { flex-direction: column; gap: .9rem; padding: 1.2rem; }
}

/* --- full CV page --- */
.cv-section { margin-top: 2.25rem; }
.cv-section h2 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-soft); font-weight: 600;
  padding-bottom: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem;
}
.cv-entry { margin-bottom: .95rem; }
.cv-entry .head { font-weight: 600; font-size: .95rem; }
.cv-entry .detail { color: var(--ink-soft); font-size: .9rem; }
.cv-group { font-size: .85rem; color: var(--ink-soft); margin: 1.1rem 0 .5rem; font-weight: 600; }
.cv-pub { display: flex; gap: .7rem; margin-bottom: .85rem; font-size: .9rem; }
.cv-pub .n { flex: 0 0 1.4rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cv-pub a { word-break: break-word; }
.badge-status {
  display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; padding: .1rem .45rem; border-radius: .25rem;
  background: var(--accent-soft); color: var(--accent); margin-right: .4rem;
}

.app-picker { display: flex; gap: .6rem; align-items: center; }
.app-picker .form-select { max-width: 22rem; font-size: .875rem; }
.app-picker .form-select:focus { border-color: #c9c9cd; box-shadow: none; }
.app-desc { margin: .75rem 0 0; font-size: .875rem; color: var(--ink-soft); }

.cv-portrait {
  display: flex; gap: 1.4rem; align-items: flex-start;
  margin-bottom: .5rem;
}
.cv-portrait img {
  width: 110px; height: auto; border-radius: .5rem;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
@media (max-width: 480px) { .cv-portrait { flex-direction: column; gap: 1rem; } }

/* The CV page already draws a rule under each section heading. */
.cv-section .contact { border-top: none; margin-top: 0; padding-top: 0; }

/* CV page: profile links and the contact gate share one row under the name. */
.head-actions { margin: -.75rem 0 .5rem; }
