/* Treasures in Archives — restored theme.
   Palette and type taken from the 2021 Squarespace original: Poppins, teal #23c3d1 accent,
   warm grey #66615c body copy on white. The original shipped 790 KB of generated Squarespace
   CSS whose layout only resolved after its JS booted; this is the same design written by hand,
   so the pages render without a runtime. */

:root {
  --tia-accent: #23c3d1;
  --tia-accent-dark: #0e6f77;   /* measured: 5.9:1 on white, 5.5:1 on --tia-bg-soft. The
                                    original #12868f read as the same teal but only made 4.35:1,
                                    i.e. every body link failed AA. */
  --tia-ink: #3f3b37;
  --tia-body: #66615c;
  --tia-muted: #737373;
  --tia-line: #ebeaeb;
  --tia-bg: #ffffff;
  --tia-bg-soft: #f7f7f6;
  --tia-max: 1100px;
  --tia-radius: 2px;
}

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

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

body {
  margin: 0;
  background: var(--tia-bg);
  color: var(--tia-body);
  font-family: Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  color: var(--tia-ink);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 400; }

p { margin: 0 0 1.1em; }

a { color: var(--tia-accent-dark); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--tia-ink); }

img { max-width: 100%; height: auto; display: block; }

.tia-wrap { max-width: var(--tia-max); margin: 0 auto; padding: 0 1.25rem; }
.tia-narrow { max-width: 780px; }

/* ---------- header ---------- */

.tia-head {
  border-bottom: 1px solid var(--tia-line);
  background: var(--tia-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.tia-head-in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
  flex-wrap: wrap;
}

.tia-brand {
  font-size: 1.1rem;
  letter-spacing: .01em;
  color: var(--tia-ink);
  text-decoration: none;
  font-weight: 400;
  margin-right: auto;
}

.tia-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: center; }

.tia-nav a {
  color: var(--tia-body);
  text-decoration: none;
  font-size: .875rem;
  letter-spacing: .02em;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}

.tia-nav a:hover { color: var(--tia-ink); border-bottom-color: var(--tia-accent); }
.tia-nav a[aria-current="page"] { color: var(--tia-ink); border-bottom-color: var(--tia-accent); }

/* ---------- hero ---------- */

.tia-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background: #2b2b2b center/cover no-repeat;
  color: #fff;
  padding: 4rem 0;
}

.tia-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* .62, not .5: measured against the brightest pixel of the hero photo, a 50% scrim left
     the 18px lede at 3.66:1. 18px is not 'large text' (that starts at 18.66px), so it needs
     the full 4.5. At .62 the worst case is 5.1:1. */
  background: rgba(24, 24, 24, .62);
}

.tia-hero .tia-wrap { position: relative; z-index: 1; }
.tia-hero h1 { color: #fff; max-width: 22ch; }
.tia-hero p { color: #f2f2f2; max-width: 60ch; }

/* ---------- sections ---------- */

.tia-section { padding: 3.5rem 0; }
.tia-section + .tia-section { border-top: 1px solid var(--tia-line); }
.tia-section-soft { background: var(--tia-bg-soft); }

.tia-lede { font-size: 1.125rem; }

.tia-btn {
  display: inline-block;
  background: var(--tia-accent);
  color: #10343a;
  text-decoration: none;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .8rem 1.6rem;
  border-radius: var(--tia-radius);
}

.tia-btn:hover { background: var(--tia-accent-dark); color: #fff; }

.tia-quote {
  text-align: center;
  padding: 4rem 0;
  background: var(--tia-bg-soft);
}

.tia-quote h2 { max-width: 24ch; margin: 0 auto .5rem; font-style: italic; }
.tia-quote p { color: var(--tia-muted); margin: 0; }

/* ---------- cards / catalogue ---------- */

.tia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.tia-card { border: 1px solid var(--tia-line); border-radius: var(--tia-radius); overflow: hidden; background: #fff; }
.tia-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.tia-card-body { padding: 1rem 1.1rem 1.3rem; }
.tia-card-body h3 { font-size: 1rem; margin-bottom: .35rem; }
.tia-card-body p { font-size: .875rem; color: var(--tia-muted); margin: 0; }
.tia-card a { text-decoration: none; color: inherit; display: block; }
.tia-card a:hover h3 { color: var(--tia-accent-dark); }

.tia-steps { counter-reset: step; }
.tia-step { border-left: 2px solid var(--tia-accent); padding: 0 0 0 1.25rem; margin: 0 0 2rem; }

.tia-figure { margin: 2rem 0; }
.tia-figure figcaption { font-size: .8125rem; color: var(--tia-muted); margin-top: .5rem; }

/* ---------- Hungarian content ---------- */

.tia-hu { background: var(--tia-bg-soft); }
.tia-hu h2 { margin-bottom: .25rem; }

.tia-hu-kicker {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tia-accent-dark);
  margin: 0 0 .75rem;
}

.tia-hu-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tia-links { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tia-links li { border-top: 1px solid var(--tia-line); }
.tia-links li:last-child { border-bottom: 1px solid var(--tia-line); }

.tia-links a {
  display: block;
  padding: .9rem .25rem;
  text-decoration: none;
  color: var(--tia-ink);
}

.tia-links a:hover { color: var(--tia-accent-dark); }
.tia-links span { display: block; font-size: .8125rem; color: var(--tia-muted); }

.tia-note {
  border: 1px solid var(--tia-line);
  border-left: 3px solid var(--tia-accent);
  background: #fff;
  padding: 1.1rem 1.25rem;
  font-size: .9375rem;
  margin: 2rem 0 0;
}

.tia-toc { background: var(--tia-bg-soft); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.tia-toc p { font-weight: 400; color: var(--tia-ink); margin-bottom: .5rem; }
.tia-toc ul { margin: 0; padding-left: 1.2rem; }

.tia-meta { color: var(--tia-muted); font-size: .8125rem; margin-bottom: 2rem; }

/* ---------- footer ---------- */

.tia-foot {
  border-top: 1px solid var(--tia-line);
  padding: 3rem 0 2.5rem;
  font-size: .875rem;
}

.tia-foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.tia-foot-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.tia-foot-nav a { color: var(--tia-body); text-decoration: none; }
.tia-foot-nav a:hover { color: var(--tia-ink); text-decoration: underline; }

.tia-logos { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.tia-logos img { max-height: 54px; width: auto; }

.tia-fine { color: var(--tia-muted); font-size: .8125rem; margin-top: 2rem; }

.tia-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tia-accent);
  color: #10343a;
  padding: .6rem 1rem;
  z-index: 40;
}

.tia-skip:focus { left: .5rem; top: .5rem; }

@media (max-width: 640px) {
  .tia-head-in { min-height: 0; padding: .75rem 0; }
  .tia-brand { width: 100%; margin-bottom: .25rem; }
  .tia-hero { min-height: 52vh; }
}

/* Catalogue list. The 39 grid thumbnails were never captured by the crawler, so this is a list of
   titles rather than a card grid — 39 identical empty tiles would read as a broken page. */

.tia-cat {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.tia-cat li {
  break-inside: avoid;
  padding: .55rem 0;
  border-bottom: 1px solid var(--tia-line);
}

.tia-cat a { text-decoration: none; color: var(--tia-ink); }
.tia-cat a:hover { color: var(--tia-accent-dark); text-decoration: underline; }
.tia-cat a::after { content: " \2192"; color: var(--tia-accent-dark); }
.tia-cat span { color: var(--tia-muted); }

@media (max-width: 700px) { .tia-cat { columns: 1; } }
