/* Shared styles for the sub-pages (contact, terms, legal, privacy, 404).
   Same desk, sheet, and top bar as index.html, on a narrower sheet without line numbers or comment margin. */
:root {
  --desk-x: 24px;
  --desk:   #D4D9DF;
  --paper:  #FFFFFF;
  --ink:    #1B1F24;
  --ink-2:  #4E5760;
  --mute:   #7F8891;
  --lnum:   #A9B0B8;
  --rule:   #DCE0E5;
  --del:    #C8102E;
  --ins:    #1F4FC4;
  --jt:     #1F4FC4;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --ui:    'Carlito', Calibri, 'Segoe UI', Arial, sans-serif;

  --px: 96px;       /* horizontal padding of the sheet */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.667;
  color: var(--ink);
  background-color: var(--desk);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.12 0 0 0 0 0.15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

a { color: var(--ins); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ins); outline-offset: 3px; border-radius: 2px; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 0 var(--desk-x);
  background: rgba(212, 217, 223, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar-in {
  max-width: 880px; margin: 0 auto; padding: 12px 4px;
  display: flex; align-items: center; gap: 28px;
  font-family: var(--ui); font-size: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.mark {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center;
}
.mark::after { content: ''; width: 2px; height: 12px; background: var(--del); border-radius: 1px; transform: rotate(-45deg); }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { color: var(--ink-2); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-weight: 700; font-size: 17px; line-height: 1;
  color: #fff; background: var(--ink); border: 0; border-radius: 4px;
  padding: 14px 22px; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: #333a42; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { font-size: 15px; padding: 10px 16px; }

/* ===== The sheet ===== */
.desk { padding: 20px var(--desk-x) 0; }
.page {
  position: relative;
  max-width: 880px; margin: 0 auto;
  background: var(--paper);
  padding: 88px var(--px) 112px;
  box-shadow: 0 1px 1px rgba(30, 40, 52, .06), 0 14px 40px -12px rgba(30, 40, 52, .22);
}

/* ===== Type ===== */
h1 { font-size: clamp(34px, 1.2rem + 2.4vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 40px 0 8px; }
p + p, p + ul, ul + p { margin-top: 12px; }
ul { padding-left: 1.3em; }
li + li { margin-top: 6px; }
strong { font-weight: 600; }
.meta { margin-top: 10px; color: var(--ink-2); }
.intro { margin-top: 28px; font-size: 20px; line-height: 1.6; }

/* ===== Forms (contact) ===== */
.form { margin-top: 32px; font-family: var(--ui); font-size: 16px; max-width: 520px; }
.field + .field { margin-top: 18px; }
.field label { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 17px/1.4 var(--ui); color: var(--ink);
  background: #fff; border: 1px solid #C5CCD3; border-radius: 3px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA2AA; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ins); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ins) 18%, transparent); }
.form .btn { margin-top: 26px; width: 100%; padding: 16px 22px; }
.form-err { margin-top: 12px; color: var(--del); font-size: 15.5px; }
.success {
  margin-top: 32px; max-width: 520px; padding: 20px 22px;
  border-left: 3px solid #2E7D32; background: color-mix(in srgb, #2E7D32 6%, #fff);
  font-family: var(--ui); font-size: 18px;
}
.success b { display: block; font-size: 19px; margin-bottom: 2px; }

/* ===== 404 ===== */
.missing { color: var(--del); text-decoration: line-through; text-decoration-thickness: 1.5px; word-break: break-all; }

/* ===== Footer ===== */
.foot { max-width: 880px; margin: 0 auto; padding: 30px 4px 40px; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; font: 15px var(--ui); }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot a[aria-current] { color: var(--ink); }

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  :root { --px: 64px; }
  .page { padding-top: 72px; }
}
@media (max-width: 768px) {
  .topbar nav { display: none; }
  :root { --px: 24px; --desk-x: 10px; }
  .page { padding-top: 52px; padding-bottom: 72px; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  :root { --px: 20px; }
  .topbar-in { padding: 10px 6px; }
  .brand { font-size: 18px; }
  .intro { font-size: 18px; }
}
