/*
  Bindung website — mirrors 01_Bindung/03_Design/Theme.swift.
  Change a colour there, change it here.
*/

:root {
  --paper: #F8F6F0;
  --rule: rgba(0, 0, 0, 0.055);
  --text-primary: #1C2225;
  --text-secondary: #6E7679;
  --text-tertiary: #9DA2A1;
  --accent: #22403A;
  --card: rgba(255, 255, 255, 0.62);
  --card-stroke: rgba(255, 255, 255, 0.55);
  --separator: rgba(0, 0, 0, 0.08);
  --logo-ink: #1C2225;

  --rule-spacing: 26px;
  --radius-lg: 22px;
  --margin: 16px;

  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --typewriter: "American Typewriter", "Courier New", Courier, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161A;
    --rule: rgba(255, 255, 255, 0.055);
    --text-primary: #FFFDFA;
    --text-secondary: #DCDFDB;
    --text-tertiary: #C9CEC9;
    --accent: #EDEEEE;
    --card: rgba(0, 0, 0, 0.38);
    --card-stroke: rgba(255, 255, 255, 0.18);
    --separator: rgba(255, 255, 255, 0.10);
    --logo-ink: #EDEEEE;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font: 16px/1.6 var(--sans);
  /* The ruled paper. */
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--rule-spacing) - 1px),
    var(--rule) calc(var(--rule-spacing) - 1px),
    var(--rule) var(--rule-spacing)
  );
  padding: 0 var(--margin);
}

a { color: var(--accent); text-underline-offset: 3px; }

.page {
  max-width: 680px;
  margin: 0 auto;
  padding-block: 40px 64px;
}

/* ---- Header on the legal pages ---- */

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  text-decoration: none;
  color: var(--text-primary);
}

.site-header img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.site-header span {
  font-family: var(--typewriter);
  font-size: 15px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.updated {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 26px;
}

/* ---- Glass card, like .paperCard() ---- */

.card {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 18px 20px;
  margin-bottom: 26px;
}

/* Small caps label, like .fieldLabelStyle() */
.label, .card h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 8px;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  margin: 18px 0 4px;
}

.card p, .card ul { margin: 0 0 12px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 20px; }
.card li { margin-bottom: 6px; }

.card hr {
  border: 0;
  border-top: 1px solid var(--separator);
  margin: 16px 0;
}

/* Anything the owner still has to fill in. */
.todo {
  background: #F6E8D0;
  color: #8A5A1E;
  border-radius: 4px;
  padding: 0 4px;
}
@media (prefers-color-scheme: dark) {
  .todo { background: #3A3020; color: #E0B471; }
}

/* ---- Landing page ---- */

.hero {
  min-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .icon {
  width: 128px;
  height: 128px;
  border-radius: 29px; /* iOS icon corner, ~22.4% */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.10);
  margin-bottom: 22px;
}

.tagline {
  font-family: var(--typewriter);
  font-size: 19px;
  margin: 0 0 18px;
}

.hero .card {
  max-width: 420px;
  text-align: center;
}

.hero .lead {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.soon {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 14px;
  padding-top: 8px;
}

.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
