/* Aula Hostelium — design tokens, reset, fonts, base typography */

@font-face {
  font-family: "Source Sans 3";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local("Source Sans 3 Regular"), local("SourceSans3-Regular");
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: local("Source Sans 3 SemiBold"), local("SourceSans3-SemiBold");
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: local("Source Sans 3 Bold"), local("SourceSans3-Bold");
}
@font-face {
  font-family: "Playfair Display";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: local("Playfair Display Bold"), local("PlayfairDisplay-Bold");
}

:root {
  /* Strict admin/institutional triad: midnight + deep burgundy + cool grey */
  --ink:        #1A1F36;   /* main text, near-black with blue undertone */
  --ink-soft:   #333366;   /* secondary text, midnight blue */
  --paper:     #F5F6FA;    /* chalk white background */
  --paper-pure: #FFFFFF;
  --mute:      #CCCCCC;    /* cool grey neutral */
  --line:      #DCDFE6;    /* hairlines */
  --accent:    #990033;    /* deep burgundy CTA */
  --accent-dk: #6E0024;    /* darker burgundy hover */
  --shade:     #EEF0F5;    /* alt panel background */

  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;

  --gutter: 24px;
  --max: 1200px;

  --radius-s: 2px;
  --radius-m: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin: 0 0 16px; line-height: 1.18; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 18px; }

p { margin: 0 0 16px; max-width: 70ch; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li + li { margin-top: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.to-content {
  position: absolute;
  left: 8px;
  top: -100px;
  background: var(--ink);
  color: var(--paper-pure);
  padding: 10px 14px;
  z-index: 999;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-weight: 600;
}
.to-content:focus { top: 8px; color: var(--paper-pure); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--paper-pure);
  font-weight: 600;
  font-family: var(--font-body);
  padding: 14px 26px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease;
  cursor: pointer;
  font-size: 16px;
  min-height: 48px;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dk); border-color: var(--accent-dk); color: var(--paper-pure); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-soft);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: var(--paper-pure); border-color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
