/* Website layout: one continuously scrolling page, responsive. */

/* Dark grey canvas with the CV as a centred white sheet (owner request, v0.3.1). */
body.web { font-size: 17px; line-height: 1.5; background: #2f3133; }
.sheet {
  max-width: 1240px;
  margin: 2.5rem auto;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  overflow: hidden; /* keeps the header band and footer inside the rounded sheet */
  border-radius: 4px;
}
.web a { color: var(--navy); }
.web a:focus-visible, .web button:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- header band ---------- */
.site-header { background: var(--navy); color: var(--band-text); padding: 1.6rem 0 2rem; }
.header-grid {
  position: relative;
  display: grid;
  grid-template-columns: 330px 1fr auto;
  grid-template-areas: ". identity identity" ". contact qr";
  column-gap: 2.6rem;
  row-gap: .9rem;
}
.lang-switch { position: absolute; top: -0.5rem; right: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.lang-switch a { color: var(--band-text); text-underline-offset: 4px; display: inline-flex; align-items: center; gap: .5em; }
.flag { height: .95em; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); border-radius: 2px; }
.flag--nl { width: 1.43em; }
.flag--gb { width: 1.9em; }
.identity { grid-area: identity; text-align: right; padding-top: 2.4rem; } /* gap below the language switch (owner request, v0.3.3) */
.web .name { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; }
.web .identity .title { font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.2; }

.contact { grid-area: contact; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.contact-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.contact-row { display: grid; grid-template-columns: 1.6rem 1fr; align-items: start; gap: .7rem; }
.contact-row a { color: var(--band-text); }
.icon--row { width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: var(--band-text); --icon-cut: var(--navy); }
.reveal { display: grid; gap: .4rem; justify-items: start; }
.reveal-hint { font-size: .85rem; opacity: .8; }
.reveal-out { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; }
.reveal-out dt { opacity: .8; }
.reveal-out dd { margin: 0; }
.reveal-out a { color: var(--band-text); }
.reveal-error { color: #ffd2cc; font-size: .9rem; }

.btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: 1rem; border-radius: 6px; padding: .5rem 1rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn--primary { background: #fff; color: var(--navy) !important; border: 2px solid #fff; font-weight: 700; }
.btn--primary:hover { background: #e8eef5; }
.btn--ghost { background: transparent; color: var(--band-text); border: 1px solid rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon--btn { width: 1.15rem; height: 1.15rem; }

.contact-pin { display: none; }

/* Wide screens: the navy timeline of the main column starts in the header as a
   white line from a pin (as in the owner's template). The contact icons sit on
   the line; text and buttons sit to its right, aligned with the main column. */
@media (min-width: 901px) {
  .contact { position: relative; padding-left: 30px; padding-top: 2.4rem; }
  .qr { margin-top: 2.4rem; } /* top edge level with the LinkedIn link (owner request, v0.3.5) */
  .contact::before {
    content: ""; position: absolute; left: 0; top: 1.7rem; bottom: -2rem; /* to the bottom of the band */
    width: 2px; background: var(--band-text); transform: translateX(-1px);
  }
  .contact-pin { display: block; position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; transform: translateX(-50%); color: #e6e6e6; }
  .contact-pin .icon { width: 100%; height: 100%; display: block; }
  .contact-row { display: block; position: relative; }
  .contact-row > .icon--row {
    position: absolute; top: .15rem; left: calc(-30px - .625rem); margin: 0;
    background: var(--navy); box-shadow: 0 0 0 5px var(--navy); /* interrupts the line behind the icon */
  }
}

.qr { grid-area: qr; align-self: start; display: block; width: 132px; } /* directly under the role (owner request, v0.3.4) */
.qr-box { padding: 8px; border-radius: 4px; }

/* ---------- body layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "photo main" "side main";
  column-gap: 2.6rem;
}
.photo-col, .side { background: var(--grey); padding-inline: 1.6rem; }
.photo-col { grid-area: photo; margin-top: -11rem; border-radius: 165px 165px 0 0; padding-top: 1.6rem; padding-bottom: 1rem; position: relative; }
.arch { display: flex; justify-content: center; }
.photo { width: 100%; max-width: 270px; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block; }
.web .tagline { margin-top: 1.4rem; }
.side { grid-area: side; padding-bottom: 2.5rem; }
.main { grid-area: main; padding: 2.2rem 0 3rem; }

.web .sec { margin-bottom: 2rem; }
.web .sec--background p + p { margin-top: .8em; }
.web .sec-h { font-size: 1.45rem; margin-bottom: .6rem; }
.web .side .sec-h { font-size: 1.4rem; }
.web .side .sec { margin: 1.8rem 0 0; }
.web .exp { margin-top: 2.3rem; }
.web .sec-h + .exp { margin-top: .4rem; }
.web .side { font-size: 16px; }

/* Skills in the main column, two columns on wide screens (v0.4.0). Column-major
   order keeps the list sorted by level from top to bottom. */
.web .sec--skills { margin-top: 2.6rem; }
.web .sec--skills .skills, .web .sec--skills .skills tbody { display: block; }
.web .sec--skills .skills tbody { column-count: 2; column-gap: 2.6rem; }
.web .sec--skills .skills tr { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .2rem 0; break-inside: avoid; }
.web .sec--skills .skills th, .web .sec--skills .skills td { padding: 0; width: auto; }
.web .sec--skills .legend dl { column-count: 2; column-gap: 2.6rem; }
.web .sec--skills .legend-row { break-inside: avoid; }
@media (max-width: 700px) {
  .web .sec--skills .skills tbody, .web .sec--skills .legend dl { column-count: 1; }
}

/* timeline line in the main column */
.web .timeline { position: relative; --tl: 30px; padding-left: 30px; }
.web .timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--navy); transform: translateX(-1px); }
/* dot positions: see cv.css (centred on headings and on employer logos) */

.site-footer { background: var(--navy); color: var(--band-text); padding: 1.2rem 0; font-size: .9rem; }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .header-grid { grid-template-columns: 1fr; grid-template-areas: "identity" "contact"; text-align: left; padding-top: 1.2rem; }
  .identity { text-align: center; padding-top: 1.6rem; }
  .contact { align-items: stretch; }
  .btn--primary { justify-content: center; }
  .qr { display: none; } /* on a phone the link is more useful than a QR code */
  .site-header { padding-bottom: 7rem; }
  .layout { grid-template-columns: 1fr; grid-template-areas: "photo" "main" "side"; }
  .photo-col { margin-top: -6rem; margin-inline: auto; width: min(330px, 100%); }
  .main { padding-top: 1.6rem; }
  .side { margin-inline: -1.5rem; padding-inline: 1.5rem; padding-top: .4rem; }
  .web .timeline { --tl: 22px; padding-left: 22px; margin-left: 8px; }
  .sheet { margin: 1.25rem; }
}
@media (max-width: 600px) {
  /* phones: the sheet fills the screen; no grey border */
  .sheet { margin: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 480px) {
  body.web { font-size: 16px; }
  .exp-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .exp-dates { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header .btn, .lang-switch, .reveal { display: none; } }
