/* yvrlanguage.com: shared styles for index.html and privacy.html.
   Mobile first; colours from the approved card palette (Standard green). */
:root {
  --green: #008C8C;       /* Standard card colour */
  --green-light: #0A9696;
  --green-dark: #007676;  /* links and buttons: 5.5:1 on white */
  --ink: #0B3D3D;         /* headings: the Standard QR colour */
  --text: #1F2A2A;
  --muted: #4F5B5B;
  --paper: #F7F8F7;
  --line: #DDE3E2;
  --gold: #C9A64E;        /* VIP accent */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* Header band: the card texture (grain, soft highlight, faint seigaiha). */
.band {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  background-color: var(--green);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(160deg, var(--green-light) 0%, var(--green) 45%, var(--green-dark) 100%);
  background-size: 220px 220px, auto, auto;
  background-blend-mode: overlay, normal, normal;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='white' stroke-width='0.8'%3E%3Ccircle cx='0' cy='20' r='18'/%3E%3Ccircle cx='0' cy='20' r='13'/%3E%3Ccircle cx='0' cy='20' r='8'/%3E%3Ccircle cx='40' cy='20' r='18'/%3E%3Ccircle cx='40' cy='20' r='13'/%3E%3Ccircle cx='40' cy='20' r='8'/%3E%3Ccircle cx='20' cy='10' r='18'/%3E%3Ccircle cx='20' cy='10' r='13'/%3E%3Ccircle cx='20' cy='10' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 20px;
}
.band-inner { position: relative; z-index: 1; }

/* .wrap sets only the side padding; the sections below set only top and bottom. */
.wrap { max-width: 40rem; margin: 0 auto; padding-inline: 22px; }

/* Wordmark: the same typographic mark as the card. */
.wordmark { display: inline-block; color: inherit; text-decoration: none; line-height: 1.15; }
.wordmark:hover { color: inherit; }
.wordmark-name { display: block; font-weight: 600; letter-spacing: 0.005em; }
.wordmark-sub { display: block; font-weight: 400; opacity: 0.92; }

/* Home page */
.hero { padding-block: 56px 44px; }
.hero .wordmark-name { font-size: 34px; }
.hero .wordmark-sub { font-size: 17px; margin-top: 8px; }

main { padding-block: 32px 8px; }
main p { margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--ink); }

.button {
  display: inline-block;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--ink); color: #FFFFFF; }
.cta { margin: 6px 0 28px; }
.cta[hidden] { display: none; }

.contact { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; }
.contact h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.contact p { margin: 0; font-size: 18px; }

footer { padding-block: 28px 40px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }
footer p { margin: 0 0 6px; }

/* Privacy notice */
.bar { padding-block: 18px; }
.bar .wordmark-name { font-size: 19px; }
.bar .wordmark-sub { font-size: 14px; margin-top: 2px; }

.doc h1 { font-size: 28px; line-height: 1.2; color: var(--ink); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.doc h2 { font-size: 20px; color: var(--ink); margin: 30px 0 8px; line-height: 1.3; }
.doc ul { padding-left: 22px; margin: 0 0 18px; }
.doc li { margin: 0 0 10px; }
.doc li strong, .doc p strong { color: var(--ink); }

@media (min-width: 640px) {
  .hero { padding-block: 80px 60px; }
  .hero .wordmark-name { font-size: 44px; }
  .hero .wordmark-sub { font-size: 19px; }
  .doc h1 { font-size: 34px; }
}
