/* Tiny Atlas: the app's own paper and ink. */
:root {
  --paper: #F3E9D6;
  --paper-light: #F8F1E3;
  --paper-deep: #E8D9BC;
  --ink: #4B3B2E;
  --ink-soft: #66533F;
  --line: rgba(75, 59, 46, 0.24);
  --pond: #D3E2BC;
  --sky: #CFE5EE;
  --sun: #F5DBA5;
  --berry: #F0D0C6;
  --lilac: #DDD5EA;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .23 0 0 0 0 .18 .16 0 0 0 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(232, 217, 188, 0.7), transparent 70%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(232, 217, 188, 0.55), transparent 70%);
  background-attachment: scroll, fixed, fixed;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 900; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--paper-light); padding: 0.5rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px;
}
.skip:focus { left: 0.5rem; z-index: 10; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; }
.brand:hover { text-decoration: none; }
.lang {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.35rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 1rem; background: rgba(248, 241, 227, 0.6);
}
.lang:hover { border-color: var(--ink); }

main { flex: 1; }

/* Text pages */
.page { padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 8vw, 5rem); }
.page h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); margin-bottom: 0.75rem; }
.page .meta { color: var(--ink-soft); font-weight: 600; margin-bottom: 2.25rem; }
.page h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); margin: 2.5rem 0 0.75rem; }
.page p, .page li { max-width: var(--measure); }
.page strong { font-weight: 800; }
.page ul, .page ol { padding-left: 1.25rem; }
.page li + li { margin-top: 0.4rem; }

.big { font-size: clamp(1.25rem, 2.4vw, 1.45rem); line-height: 1.55; }

/* Tinted chip: a soft blob with a line glyph (support pages) */
.chip { width: 3.25rem; height: 3.25rem; }
.chip .bg { stroke: none; }
.chip .glyph { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Contact note: full hairline, a soft wash and a tinted chip */
.note {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; align-items: center;
  max-width: var(--measure); padding: 1.25rem 1.5rem; margin: 0 0 2.5rem;
  border: 1px solid var(--line); border-radius: 28px;
  background: radial-gradient(ellipse 90% 140% at 0% 0%, rgba(207, 229, 238, 0.75), transparent 60%), var(--paper-light);
}
.note p { margin: 0; }
.note .email { font-size: 1.2rem; }
.note .hint { margin-top: 0.5rem; color: var(--ink-soft); font-size: 1rem; }
.note .chip { grid-row: auto; }
.email { font-weight: 800; overflow-wrap: break-word; }

/* FAQ */
.page .faq { max-width: var(--measure); margin: 0; padding: 0; list-style: none; }
.page .faq > li { margin: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq li:last-child details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-weight: 800; font-size: 1.15rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%234B3B2E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}
.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' stroke='%234B3B2E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq .answer { padding: 0 0 1.4rem; }
.faq .answer p + p, .faq .answer p + ol, .faq .answer ol + p { margin-top: 0.8em; }
.faq ol { margin: 0; }

/* Press */
.facts-table { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.75rem; max-width: var(--measure); margin: 0; }
.facts-table dt { font-weight: 800; }
.facts-table dd { margin: 0; color: var(--ink-soft); }
.icon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.icon-row img { width: 128px; height: 128px; border-radius: 28px; border: 1px solid var(--line); }
.downloads { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1.2rem;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper-light);
  font-weight: 800; font-size: 1rem; text-decoration: none;
}
.button:hover { background: var(--paper-deep); }
.press-shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); max-width: 64rem; }
.press-shots a { display: block; text-decoration: none; font-weight: 700; font-size: 1rem; }
.press-shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 0.45rem; }
.press-shots span { display: block; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.page .press-shots, .page .downloads { padding-left: 0; }
.page .press-shots li, .page .downloads li { margin: 0; }

/* Footer */
.foot {
  padding: 2.5rem var(--gutter) 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  font-size: 1rem; color: var(--ink-soft);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot nav a { font-weight: 700; display: inline-block; padding: 0.4rem 0; }
.foot .mark { display: inline-flex; align-items: center; gap: 0.6rem; }
.foot .mark img { width: 32px; height: 32px; }

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .facts-table { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts-table dd { margin-bottom: 0.7rem; }
  .foot { flex-direction: column; align-items: flex-start; }
  .note { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.25rem; }
  .note .email { font-size: 1.1rem; }
}

/* One centred column for header, text pages and footer on wide screens */
.top, .page, .foot { width: 100%; max-width: 72rem; margin-left: auto; margin-right: auto; }
