/* SvezzApp — svezzapp.com
   Colours, radii and shadows come from the app theme:
   SvezzaApp/SvezzaApp/Core/Design/Theme.swift */

:root {
  color-scheme: light dark;

  --background: #FAF9F6;      /* svezzappBackground */
  --surface: #FFFFFF;         /* adaptiveSurface */
  --text: #3E4856;            /* svezzappText */
  --text-secondary: #5F6672;  /* adaptiveTextSecondary, darkened for 4.5:1 on the background */
  --border: #E5E7EB;          /* adaptiveBorder */
  --link: #B3523F;            /* peachyCoral800 */
  --accent: #FFB5A0;          /* peachyCoral400 */
  --accent-soft: #FFF3EF;     /* peachyCoral100 */
  --button-text: #5A291F;     /* peachyCoral900 */

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1C1C1E;
    --surface: #2C2C2E;
    --text: #F5F5F5;
    --text-secondary: #ABABAB;
    --border: #3A3A3C;
    --link: #FFB5A0;          /* peachyCoral400 */
    --accent-soft: #3A3A3C;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Links: underlined, so they do not rely on colour alone */
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header {
  padding: 24px 0 8px;
}

.brand {
  font-family: var(--font-rounded);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* Content */
main {
  padding: 16px 0 32px;
}

h1,
h2,
h3 {
  font-family: var(--font-rounded);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 8px;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 24px 0 4px;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

.updated,
.lead {
  color: var(--text-secondary);
}

.updated {
  font-size: 0.9375rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin: 24px 0;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.note {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 32px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--button-text);
  font-family: var(--font-rounded);
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
}

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer li {
  margin: 0;
}

.site-footer p {
  margin: 0 0 12px;
}
