/* GASTRO-X — "menu card" design
   Fonts: Fraunces for display, Inter for text (SIL Open Font License), self-hosted: no third-party requests. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2"); }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f3ebdd;
  --card: #f7f1e6;
  --ink: #2a1f1a;
  --muted: #6b5a4e;
  --accent: #8a3b24;
  --line: #2a1f1a;
  --hair: #d8cab4;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1714;
    --card: #241d19;
    --ink: #efe4d3;
    --muted: #b3a393;
    --accent: #e39a78;
    --line: #cdbda8;
    --hair: #3d332c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem; z-index: 10; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.col { max-width: 42rem; margin: 0 auto; }

/* Header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.9rem; }
nav a {
  color: var(--muted); text-decoration: none; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.5em; }

/* Page head (centred, like the top of a menu) */
main { padding: 2.5rem 0 4rem; }
.head { text-align: center; padding: 2rem 0 0.5rem; }
.kicker {
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 1rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 9vw, 6.5rem); letter-spacing: 0.02em; margin: 0 0 1rem; }
.page h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
.sub {
  font-family: var(--serif); font-style: italic; color: var(--muted);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem); line-height: 1.35; max-width: 40rem; margin: 0 auto;
}
.orn {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  margin: 2.5rem auto; color: var(--accent); font-family: var(--serif); font-size: 0.9rem;
}
.orn::before, .orn::after { content: ""; width: 4.5rem; border-top: 1px solid var(--line); }

h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); margin: 3rem 0 1rem; }
h2.it { font-style: italic; text-align: center; }
h3 { font-size: 1.3rem; margin: 2rem 0 0.4rem; }
p { margin: 0 0 1.1rem; }
.lead { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

/* The menu card */
.menu {
  max-width: 46rem; margin: 2.5rem auto; padding: 2.5rem 3rem 2rem; background: var(--card);
  border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 6px;
}
.menu > h2 { margin-top: 0; }
.course { margin: 0 0 1.4rem; }
.course .row {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.3;
}
.course .num { min-width: 2.4rem; color: var(--accent); }
.course .row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-0.3em); min-width: 1rem; }
.course .when { font-variant-numeric: lining-nums; white-space: nowrap; }
.course .desc { margin: 0.2rem 0 0 3rem; color: var(--muted); font-size: 0.97rem; }
.course .more { margin: 0.6rem 0 0 3rem; }
.menu .note { text-align: center; font-family: var(--serif); font-style: italic; color: var(--muted); margin: 1.5rem 0 0; }

/* Colophon line of facts */
.facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2.5rem;
  margin: 3rem 0 0; padding: 1.25rem 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  font-size: 0.9rem; text-align: center;
}
.facts dt { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.1rem 0 0; font-family: var(--serif); font-size: 1.05rem; }

/* News */
.entry { padding: 1.5rem 0; border-top: 1px solid var(--hair); }
.entry:first-of-type { border-top: 0; }
.entry time { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.entry h3 { margin: 0.35rem 0 0.5rem; font-size: 1.55rem; }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--accent); }

/* People */
.person { text-align: center; margin: 0 0 3rem; }
.person h3 { font-size: 1.75rem; margin: 0 0 0.3rem; }
.person .role { font-family: var(--serif); font-style: italic; color: var(--muted); margin-bottom: 1rem; }
.person .bio { text-align: left; }
.person .links { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.person .links a { margin: 0 0.6rem; }

/* References */
.refs { list-style: none; padding: 0; }
.refs li { padding-left: 1.5rem; text-indent: -1.5rem; margin-bottom: 0.9rem; font-size: 0.95rem; }
.refs a { overflow-wrap: anywhere; }

/* Footer: EU acknowledgement (Grant Agreement, Art. 17.2 and 17.3). Do not remove. */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
.site-footer .eu { display: inline-block; margin-bottom: 1rem; }
.site-footer .eu img { height: 64px; width: auto; display: block; }
.site-footer p { max-width: 44rem; margin: 0 auto 0.7rem; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  .site-header .wrap { justify-content: center; }
  nav ul { justify-content: center; gap: 0.25rem 1.2rem; }
  .menu { padding: 1.75rem 1.25rem 1.25rem; outline-offset: 4px; }
  .course .row { font-size: 1.15rem; }
  .course .num { min-width: 1.9rem; }
  .course .desc, .course .more { margin-left: 2.5rem; }
  .site-footer .eu img { height: 52px; }
}

.course .row a { color: var(--ink); text-decoration: none; }
.course .row a:hover { color: var(--accent); text-decoration: underline; }
