/*
  Standalone public pages: privacy, support, account deletion and help.
  Mirrors the default theme in app.css (cream background, brown card, gold accent,
  Cormorant Garamond headings, Manrope text). Load fonts.css before this file.
*/

:root {
  color-scheme: light;
  --bg-top: #f8f2dd;
  --bg-bottom: #d4b88c;
  --card: #5c351b;
  --card-border: rgba(255, 232, 182, 0.35);
  --panel: rgba(255, 247, 228, 0.09);
  --text-main: #fff8ea;
  --text-soft: #f3e6cd;
  --accent: #ffe7aa;
  --button-bg: #fff2bf;
  --button-text: #5f2d12;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  padding: 16px max(12px, env(safe-area-inset-right)) 40px max(12px, env(safe-area-inset-left));
  color: var(--button-text);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
  font: 1rem/1.65 Manrope, system-ui, sans-serif;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible,
main:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

.page a:focus-visible {
  outline-color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

.site-header,
.page,
.site-footer {
  width: min(100%, 760px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 4px 4px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 1.5rem/1.1 "Cormorant Garamond", Georgia, serif;
  text-decoration: none;
}

.site-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  background: var(--card);
  color: var(--text-main);
}

.page {
  padding: 28px 20px;
  border: 1px solid var(--card-border);
  border-radius: 30px;
  background: var(--card);
  color: var(--text-main);
  box-shadow: 0 28px 60px rgba(55, 25, 7, 0.28);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 8vw, 3.1rem);
}

h2 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.75rem;
}

h3 {
  margin: 20px 0 6px;
  font-size: 1.3rem;
}

p,
ul,
ol {
  margin: 0 0 12px;
}

li {
  margin-bottom: 6px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.updated {
  color: var(--text-soft);
  font-size: 0.9rem;
}

section {
  margin-top: 16px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 236, 194, 0.18);
  border-radius: 18px;
  background: var(--panel);
  scroll-margin-top: 12px;
}

section > :last-child {
  margin-bottom: 0;
}

.notice {
  border: 2px solid var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 20px 4px 0;
}

@media (max-width: 480px) {
  body {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }

  .page {
    padding: 20px 12px;
    border-radius: 22px;
  }

  .site-nav,
  .site-nav ul {
    width: 100%;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-nav a {
    display: flex;
    justify-content: center;
  }

  .site-nav li {
    margin: 0;
  }

  .site-footer a {
    padding: 0 9px;
  }

  .actions .button {
    width: 100%;
  }
}

@media print {
  body {
    background: none;
    color: #000;
  }

  .page {
    border: 0;
    background: none;
    color: #000;
    box-shadow: none;
  }

  h2,
  .kicker,
  .updated {
    color: #000;
  }

  .skip-link,
  .site-nav,
  .site-footer {
    display: none;
  }
}
