/* edwardcallus.com — one stylesheet, no dependencies.
   No web-font service, no CDN, no analytics, no third-party request of any kind.
   That is deliberate: it is what lets the privacy notice say "this site sets
   no cookies and contacts no third party", and mean it. The serif below is
   Source Serif 4 (SIL Open Font License, see fonts/OFL.txt), served from this
   domain as three small first-party files: that is not a third-party request.
   Do not add Google Fonts or an analytics snippet without rewriting privacy.html. */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Three colours, and only three: paper, ink, one accent. Everything else
     (muted text, hairlines, panel surfaces) is a tint of those. Cool and quiet
     on purpose: a consulting room, not a heritage brochure.
     Alternatives tried on 19 Sep 2026, each with its own paper/ink set in
     "00 START HERE": sage #4F6B5D, deep teal #2C5A60, plum #6A4560, bronze #8A5A2B. */
  --paper:   #FAF8F4;
  --ink:     #222B33;
  --accent:  #3F5B73;   /* slate blue */
  --muted:   #59636C;   /* ink, lightened */
  --rule:    #E2E0DA;   /* ink at about 12% on paper */
  --tint:    #F1EFEA;   /* paper, one step darker */
  --surface: #FFFEFC;   /* paper, one step lighter: panels */
  --measure: 36rem;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: 2.5rem; margin: 0 0 .6rem; }
h1::after { content: ""; display: block; width: 3rem; height: 3px; background: var(--accent); margin-top: .9rem; }
h2 { font-size: 1.5rem; margin: 3rem 0 .85rem; }
h3 { font-size: 1.125rem; margin: 1.9rem 0 .4rem; font-weight: 600; }

p  { margin: 0 0 1.2rem; max-width: var(--measure); }
ul { max-width: var(--measure); padding-left: 1.1rem; }
li { margin-bottom: .5rem; }
em { font-style: italic; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: .6px; }
a:hover { color: var(--ink); text-decoration-thickness: 1.5px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: baseline; justify-content: space-between;
}
.wordmark {
  font-size: 1.25rem; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.wordmark:hover { text-decoration: none; color: var(--ink); }
nav ul { display: flex; flex-wrap: wrap; gap: 1.15rem; list-style: none; margin: 0; padding: 0; max-width: none; }
nav li { margin: 0; }
nav a {
  font-family: var(--sans);
  text-decoration: none; color: var(--muted); font-size: .9375rem;
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
}
nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- page body ---------- */
main { padding: 3.25rem 0 4rem; }
.lede { font-size: 1.3125rem; line-height: 1.55; color: var(--ink); max-width: var(--measure); }
.subtitle { font-family: var(--sans); color: var(--muted); font-size: 1rem; margin: 0 0 2rem; max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.sans { font-family: var(--sans); }

/* home: portrait beside the opening lines. The frame is an offset hairline in
   the accent. The <img> comes first in the HTML so that on a phone it can float
   to the right of the name; from 40rem up the grid puts it in the second column. */
.hero { margin-bottom: 1rem; }
.hero::after { content: ""; display: block; clear: both; }
.hero .portrait {
  float: right; width: 108px; height: auto; margin: .3rem 6px 1rem 1.1rem;
  border: 0; border-radius: 1px;
  box-shadow: 6px 6px 0 -1px var(--paper), 6px 6px 0 0 var(--accent);
}
.hero .lede { clear: both; }
@media (min-width: 40rem) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 247px; gap: 1.5rem 3rem; align-items: center; }
  .hero::after { display: none; }
  .hero .portrait { float: none; order: 2; width: 240px; margin: 0 7px 0 0; justify-self: end;
    box-shadow: 7px 7px 0 -1px var(--paper), 7px 7px 0 0 var(--accent); }
}

/* home: the profile's four doors (revision 4, 30 Sep 2026). Each card is one
   link, the same white-on-paper surface as .panel; the arrow is the only cue. */
.paths { margin: 2.75rem 0; }
.paths ul { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; max-width: none; }
@media (min-width: 42rem) { .paths ul { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.paths li { margin: 0; }
.paths a {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.2rem 1.35rem 1.15rem;
  background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.paths a:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.paths .kicker { font-family: var(--sans); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .45rem; }
.paths .title { font-weight: 600; font-size: 1.1875rem; line-height: 1.3; margin-bottom: .45rem; }
.paths .title::after { content: " \2192"; color: var(--accent); font-weight: 400; transition: margin-left .15s ease; }
.paths a:hover .title::after { margin-left: .2rem; }
.paths .text { color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .paths a, .paths .title::after { transition: none; } .paths a:hover { transform: none; } }

/* a pull-quote in his own voice: one per page at most */
.aside {
  font-size: 1.25rem; line-height: 1.5; font-style: italic;
  max-width: var(--measure); margin: 2.5rem 0;
  padding-left: 1.25rem; border-left: 3px solid var(--accent);
}

/* a quiet pointer box — "fees and appointments live on the studio's page" */
.pointer {
  background: var(--tint); border-left: 3px solid var(--accent);
  padding: 1.2rem 1.4rem; margin: 2.25rem 0; max-width: var(--measure);
}
.pointer p { margin: 0; }
.pointer p + p { margin-top: .6rem; }
.pointer strong { font-family: var(--sans); font-size: .9375rem; letter-spacing: .01em; }

/* the featured window: the two published clinical case studies */
.feature {
  margin: 2.5rem 0; padding: 1.5rem 1.6rem 1.2rem;
  border: 1px solid var(--rule); border-top: 3px solid var(--accent);
  background: var(--surface); max-width: none;
}
.feature h2, .feature h3 { margin-top: 0; }
.feature .kicker { font-family: var(--sans); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.feature .cases { display: grid; gap: 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; max-width: none; }
@media (min-width: 42rem) { .feature .cases { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.feature .cases li { margin: 0; }
.feature .cases .title { display: block; font-weight: 600; line-height: 1.3; }
.feature .cases .cite { display: block; font-family: var(--sans); color: var(--muted); font-size: .875rem; margin: .35rem 0 .5rem; }
.feature .cases p { font-size: 1rem; margin: 0; }
.panel p:last-child { margin-bottom: .4rem; }

/* a white panel on the paper: the same surface as the case-study window,
   used once or twice per page so every page has the same rhythm */
.panel {
  background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent);
  padding: 1.5rem 1.6rem 1.1rem; margin: 2.5rem 0; max-width: none;
}
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel .rows { margin-top: .5rem; }
.panel .row:last-child { border-bottom: 0; }
.panel .kicker { font-family: var(--sans); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }

/* research themes as a grid of short cards */
.themes { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; max-width: none; }
@media (min-width: 42rem) { .themes { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.themes li { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 1.1rem 1.25rem .4rem; }
.themes h3 { margin: 0 0 .4rem; }
.themes p { font-size: 1rem; }

/* contact: two doors side by side */
.doors { display: grid; gap: 1.25rem; margin: 2rem 0; max-width: none; }
@media (min-width: 42rem) { .doors { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.doors .panel { margin: 0; }
.doors .panel p:last-child { margin-bottom: 0; }

/* the studio map: a first-party image, not an embed */
.map { margin: 2rem 0; max-width: none; }
.map img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.map figcaption { font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-top: .6rem; max-width: var(--measure); }

/* definition-style rows: roles, education, memberships */
.rows { margin: 1.25rem 0 0; }
.row { padding: 1.1rem 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row .what { font-weight: 600; }
.row .where, .row .when { font-family: var(--sans); color: var(--muted); font-size: .9375rem; }
.row p { margin: .25rem 0 0; }

/* publications */
.pubs { list-style: none; padding: 0; margin: 1.25rem 0 0; max-width: var(--measure); }
.pubs li { padding: 1rem 0; border-top: 1px solid var(--rule); margin: 0; }
.pubs li:last-child { border-bottom: 1px solid var(--rule); }
.pubs .title { display: block; }
.pubs .cite { display: block; font-family: var(--sans); color: var(--muted); font-size: .875rem; margin-top: .25rem; }

.linklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.linklist li { margin-bottom: .45rem; }

/* ---------- footer ---------- */
.site-footer {
  font-family: var(--sans);
  background: var(--ink); color: var(--rule);
  border-top: 3px solid var(--accent); margin-top: 3rem; padding: 2.25rem 0 2.5rem;
  font-size: .875rem; line-height: 1.6;
}
.site-footer p { max-width: var(--measure); margin: 0 0 .35rem; }
.site-footer strong { color: var(--paper); font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; }
.site-footer p:last-child { margin-top: 1.1rem; }
.site-footer a { color: var(--paper); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
.site-footer a:hover { color: var(--paper); text-decoration-color: var(--paper); }

/* portrait photo — About page, floats beside the lede on wider screens */
.portrait {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 0 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
@media (min-width: 34rem) {
  .portrait { float: right; margin: .25rem 0 1.5rem 2rem; }
}

@media (max-width: 34rem) {
  h1 { font-size: 1.9rem; }
  h1::after { width: 2.25rem; margin-top: .7rem; }
  h2 { font-size: 1.35rem; margin-top: 2.4rem; }
  body { font-size: 1.0625rem; line-height: 1.65; }
  .lede { font-size: 1.1875rem; }
  .aside { font-size: 1.125rem; margin: 2rem 0; }
  .wrap { padding: 0 1.25rem; }
  main { padding: 1.9rem 0 3rem; }
  .site-header { padding: 1rem 0 .85rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: .45rem; }
  nav ul { gap: .1rem 1rem; }
  nav a { font-size: .875rem; line-height: 1.9; display: inline-block; }
  .signals { margin: 2rem 0; gap: 1rem; }
  .feature, .panel { padding: 1.2rem 1.1rem 1rem; margin: 2rem 0; }
  .pointer { padding: 1rem 1.1rem; }
}

/* ---------- the courtyard murals ----------
   The sgraffito panels in the entrance of Via Mercadante 8, photographed by
   Edward on 19 Sep 2026 and reduced to line. Each file is only an alpha
   channel, used as a CSS mask, so the drawing always takes the accent colour
   and there is never a fourth colour on the page. First-party files: no
   third-party request. Purely decorative, so they are CSS and not <img>. */
body { position: relative; overflow-x: hidden; }
body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  left: calc(50% + 26rem); bottom: 0;
  width: min(22rem, calc(50vw - 28rem)); height: min(48rem, 88vh);
  background: var(--accent); opacity: .24;
  -webkit-mask: var(--mural) no-repeat bottom left / contain;
          mask: var(--mural) no-repeat bottom left / contain;
  display: none;
}
body { --mural: url("img/mural-torre.webp"); }
body.m-rocchetta { --mural: url("img/mural-rocchetta.webp"); }
body.m-cipressi  { --mural: url("img/mural-cipressi.webp"); }
@media (min-width: 84rem) { body::after { display: block; } html { background: var(--paper); } body { background: transparent; isolation: isolate; } }

/* below 84rem there is no margin to stand the drawing in, so it moves inside
   the footer: the same mural in paper colour on the ink band, faint, like an
   engraving on a dark plate, with the footer text kept clear of it. */
.site-footer { position: relative; overflow: hidden; }
.site-footer .wrap { padding-right: 8.75rem; }
.site-footer::before {
  content: ""; position: absolute; right: .5rem; top: 0; bottom: 0; width: 8rem; pointer-events: none;
  background: var(--paper); opacity: .2;
  -webkit-mask: var(--mural) no-repeat 50% var(--mural-y, 9%) / 100% auto;
          mask: var(--mural) no-repeat 50% var(--mural-y, 9%) / 100% auto;
}
body.m-cipressi { --mural-y: 12%; }
body.m-rocchetta { --mural-y: 40%; }
@media (min-width: 40rem) { .site-footer::before { right: max(1rem, calc(50% - 23.5rem)); width: 9rem; } .site-footer .wrap { padding-right: 11rem; } }
@media (min-width: 84rem) { .site-footer::before { display: none; } .site-footer .wrap { padding-right: 1.5rem; } }

/* the studio, in three photographs, toned to the ink so they sit in the palette */
.studio { display: grid; gap: .75rem; margin: 2rem 0 .5rem; max-width: none; }
.studio { grid-template-columns: 1fr 1fr; }
.studio img:first-of-type { grid-column: 1 / -1; }
@media (min-width: 42rem) { .studio { grid-template-columns: repeat(3, 1fr); } .studio img:first-of-type { grid-column: auto; } }
.studio img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.studio figcaption { grid-column: 1 / -1; font-family: var(--sans); font-size: .875rem; color: var(--muted); max-width: var(--measure); }
