/* hossegorfrance.com shared stylesheet.
   Design tokens shared between homepage and weekly issue pages. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #111; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #555; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 14px 0; }

.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Top nav */
nav.top { padding: 20px 0; border-bottom: 1px solid #eee; }
nav.top .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
nav.top .brand { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: #111; text-decoration: none; }
nav.top .brand .sub { color: #888; font-weight: 500; margin-left: 8px; font-size: 14px; }
nav.top .links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
nav.top .links a { color: #555; text-decoration: none; }
nav.top .links a:hover { color: #111; }
nav.top .lang { border: 1px solid #ddd; border-radius: 999px; padding: 4px 6px; font-size: 12px; }
nav.top .lang a { padding: 2px 8px; text-decoration: none; color: #888; border-radius: 999px; }
nav.top .lang a.active { background: #111; color: #fff; }

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #888; margin-bottom: 18px; }
.hero h1 { max-width: 18ch; margin: 0 auto 22px auto; }
.hero .strap { font-size: 19px; color: #555; max-width: 56ch; margin: 0 auto 32px auto; line-height: 1.5; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 24px; background: #111; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 8px; border: 1px solid #111; }
.btn:hover { background: #333; color: #fff; }
.btn.ghost { background: #fff; color: #111; border: 1px solid #ddd; }
.btn.ghost:hover { border-color: #111; background: #fff; }

/* Block section */
section.block { padding: 64px 0; border-bottom: 1px solid #eee; }
section.block .kicker { text-align: left; }
section.block h2 { text-align: left; max-width: 28ch; margin: 0 0 16px 0; }
section.block h3 { margin: 22px 0 6px 0; font-size: 18px; font-weight: 700; }
section.block p { margin-bottom: 12px; }
section.block ul { padding-left: 20px; margin: 12px 0; }
section.block ul li { margin-bottom: 8px; }
section.block strong { font-weight: 700; }
section.block em { font-style: italic; color: #444; }

/* Subscribe */
.subscribe { padding: 80px 0; text-align: center; border-bottom: 1px solid #eee; }
.subscribe h2 { text-align: center; max-width: 18ch; margin: 0 auto 16px auto; }
.subscribe p { color: #555; font-size: 17px; max-width: 50ch; margin: 0 auto 28px auto; }
.subscribe form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.subscribe input { flex: 1; min-width: 220px; padding: 14px 16px; border: 1px solid #ddd; border-radius: 8px; font: inherit; font-size: 15px; }
.subscribe input:focus { outline: 0; border-color: #111; }
.subscribe button { padding: 14px 24px; background: #111; color: #fff; border: 0; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.subscribe button:hover { background: #333; }
.subscribe small { display: block; margin-top: 14px; color: #888; font-size: 13px; }

/* Footer */
footer { padding: 56px 0 40px 0; color: #888; font-size: 14px; line-height: 1.6; }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
footer .row-links { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: #555; text-decoration: none; }
footer a:hover { color: #111; }
footer .fineprint { margin-top: 32px; padding-top: 20px; border-top: 1px solid #eee; color: #aaa; font-size: 13px; }

/* Hero inline form (sits directly under the strap, primary CTA) */
.hero-form {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  max-width: 460px; margin: 0 auto;
}
.hero-form input {
  flex: 1; min-width: 220px;
  padding: 14px 16px; border: 1px solid #ddd; border-radius: 8px;
  font: inherit; font-size: 15px; background: #fff;
}
.hero-form input:focus { outline: 0; border-color: #111; }
.hero-form button {
  padding: 14px 24px; background: #111; color: #fff; border: 0;
  border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.hero-form button:hover { background: #333; }
.hero-form .subscribe-status { text-align: center; }

/* Subscribe form: success/error states (shared across all four placements) */
.subscribe-status { width: 100%; margin-top: 12px; font-size: 14px; line-height: 1.4; min-height: 18px; }
.subscribe-status.loading { color: #888; }
.subscribe-status.success { color: #1f7a3a; }
.subscribe-status.error   { color: #b91c1c; }
form[data-subscribe] button:disabled { opacity: 0.6; cursor: wait; }

/* Inline mid-page subscribe card (sits between blocks) */
.inline-subscribe { padding: 28px 0 36px; }
.inline-subscribe .card {
  background: #f7f5f1;
  border: 1px solid #ebe7df;
  border-radius: 12px;
  padding: 24px 24px;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-subscribe .copy { flex: 1 1 260px; min-width: 0; }
.inline-subscribe .copy h3 { font-size: 19px; margin: 0 0 4px 0; font-weight: 700; letter-spacing: -0.01em; }
.inline-subscribe .copy p { margin: 0; color: #555; font-size: 15px; line-height: 1.5; }
.inline-subscribe form {
  display: flex; gap: 8px; flex: 1 1 280px; min-width: 0; flex-wrap: wrap;
}
.inline-subscribe input {
  flex: 1; min-width: 180px;
  padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px;
  font: inherit; font-size: 15px; background: #fff;
}
.inline-subscribe input:focus { outline: 0; border-color: #111; }
.inline-subscribe button {
  padding: 12px 20px; background: #111; color: #fff; border: 0;
  border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.inline-subscribe button:hover { background: #333; }

/* Sticky bottom-of-viewport bar (mobile-priority, dismissible, localStorage-remembered) */
.sticky-subscribe {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #111; color: #fff;
  padding: 12px 16px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  z-index: 50;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 0.22s ease;
}
.sticky-subscribe.hidden { transform: translateY(110%); }
.sticky-subscribe .label { flex: 1 1 200px; font-size: 14px; line-height: 1.4; }
.sticky-subscribe form { display: flex; gap: 6px; flex: 2 1 320px; flex-wrap: wrap; align-items: center; }
.sticky-subscribe input {
  flex: 1; min-width: 160px;
  padding: 10px 12px; border-radius: 6px; border: 0;
  font: inherit; font-size: 14px; color: #111; background: #fff;
}
.sticky-subscribe input:focus { outline: 2px solid #fff; outline-offset: 1px; }
.sticky-subscribe button {
  padding: 10px 16px; border: 0; border-radius: 6px;
  background: #fff; color: #111;
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.sticky-subscribe button:hover { background: #eee; }
.sticky-subscribe .sticky-close {
  background: transparent; color: #aaa; border: 0; cursor: pointer;
  font-size: 18px; line-height: 1; padding: 6px 8px;
  align-self: center;
}
.sticky-subscribe .sticky-close:hover { color: #fff; }
.sticky-subscribe .subscribe-status { color: #fff; font-size: 13px; }
.sticky-subscribe .subscribe-status.success { color: #9be9a8; }
.sticky-subscribe .subscribe-status.error   { color: #fca5a5; }

body.has-sticky { padding-bottom: 92px; }
@media print { .sticky-subscribe { display: none !important; } body.has-sticky { padding-bottom: 0; } }
@media (max-width: 540px) {
  .sticky-subscribe { padding: 10px 12px; }
  .sticky-subscribe .label { display: none; }
  body.has-sticky { padding-bottom: 76px; }
}

/* Mobile */
@media (max-width: 720px) {
  section.block { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .subscribe { padding: 56px 0; }
  nav.top .links { display: none; }
  nav.top .lang { display: inline-flex; }
}
