/* Photo Metadata Restore — site stylesheet (self-hosted, no external CDN) */

:root {
  --bg: #1a2532;
  --bg-raised: #22303f;
  --bg-card: #24333f;
  --border: #34495c;
  --text: #eef2f5;
  --text-muted: #b7c4cf;
  --accent: #f2a93b;
  --accent-dark: #c9871f;
  --link: #f2a93b;
  --danger-bg: #3a2a22;
  --danger-border: #8a5a2c;
  --max-width: 960px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

a {
  color: var(--link);
}

a:hover,
a:focus {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a2532;
  padding: 0.5em 1em;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5em;
  top: 0.5em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.brand-mark {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  line-height: 1.4em;
  text-align: center;
  border-radius: 6px;
  background: var(--accent);
  color: #1a2532;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Main content */

.main {
  padding: 48px 0 64px;
}

.hero {
  padding: 56px 0 32px;
  text-align: center;
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 8px;
}

.hero .subhead {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 600;
}

.lede {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #1a2532;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

section:first-of-type {
  border-top: none;
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.3em;
  margin: 0 0 14px;
}

li {
  margin-bottom: 6px;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.steps .step-num {
  display: inline-block;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: #1a2532;
  font-weight: 700;
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

caption {
  text-align: left;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-raised);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.price-card h3 {
  margin-top: 0;
}

.price-tag {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin: 6px 0 12px;
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 14px;
}

.notice {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 24px;
  color: var(--text);
}

code {
  background: var(--bg-raised);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}

.legal-copy h1 {
  font-size: 1.9rem;
  margin: 0 0 8px;
}

.legal-copy .lede {
  margin: 0 0 32px;
  text-align: left;
}

.legal-copy h2 {
  font-size: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}

.legal-copy section:first-of-type h2,
.legal-copy h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

dl {
  margin: 0 0 14px;
}

dt {
  font-weight: 700;
  margin-top: 14px;
}

dd {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.attribution {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.not-found {
  text-align: center;
  padding: 80px 0;
}

.error-code {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-row a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-row a:hover {
  color: var(--accent);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive */

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 8px;
  }
}
