/* ============================================================
   SwiftLife — public site
   Loaded after code/default.css and the remote store stylesheet,
   so it wins where the three overlap.

   Same look as before: warm cream, centred column, the wordmark
   over the date, the nav pill, the blue quote in the footer.
   What changed is the execution -- real type, real spacing, and
   a layout that survives a phone.
   ============================================================ */

:root {
  --paper:   #fffdf8;
  --card:    #ffffff;
  --cream:   #fffbf2;
  --peach:   #ffe6d5;
  --ivory:   #fffff0;

  --ink:     #1d1b18;
  --ink-2:   #5b554c;
  --ink-3:   #8d867a;

  --rule:    #ebe4d8;
  --rule-2:  #f4efe6;

  --link:    #0b62b8;
  --link-2:  #084a8c;
  --quote:   #5b8fc4;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --measure: 62rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The old stylesheet paints every link black. These win. */
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-2); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

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

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- masthead ---------------------------------------- */

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 0 26px;
  text-align: center;
}

.wordmark {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 9px 26px;
  box-shadow: 0 1px 2px rgba(29, 27, 24, .04);
}

.wordmark a {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark a:hover { color: var(--link); text-decoration: none; }

.wordmark sup {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  vertical-align: super;
  margin-left: 1px;
}

.today {
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.connect {
  display: inline-block;
  background: var(--peach);
  border: 1px solid #f0cdb4;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #8a4a1c;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.connect:hover {
  background: #ffd9c0;
  color: #7a3f16;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- the Emilia line --------------------------------- */

.speak {
  background: var(--ivory);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  padding: 13px 20px;
  text-align: center;
  font-size: 15px;
  color: #22304a;
}
.speak em { color: var(--ink-3); font-style: italic; }
.speak a { text-decoration: underline; }

/* ---------- navigation -------------------------------------- */

.nav {
  display: flex;
  justify-content: center;
  padding: 22px 0 6px;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: linear-gradient(180deg, #f4f8ff 0%, #e4ecf7 100%);
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(29, 27, 24, .06);
}

.nav li { position: relative; }

.nav li > a {
  display: block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #3c4757;
  text-decoration: none;
  white-space: nowrap;
  transition: background .13s ease, color .13s ease;
}

.nav li > a:hover,
.nav li:hover > a,
.nav li:focus-within > a {
  background: #4a72b8;
  color: #fff;
  text-decoration: none;
}

/* submenus */
.nav ul ul {
  display: block;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(29, 27, 24, .13);
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  z-index: 40;
}

.nav li:hover > ul,
.nav li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav ul ul li > a {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  text-align: left;
}
.nav ul ul li > a:hover {
  background: var(--cream);
  color: var(--ink);
}

/* A caret so the two menus that open are visibly different. */
.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-left: 7px;
  vertical-align: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .55;
}

/* ---------- main -------------------------------------------- */

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 26px 0 0;
}

main { padding: 44px 0 56px; }

.notice {
  max-width: 34rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(29, 27, 24, .04);
}

.notice h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.notice p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.pay {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-2);
}
.pay .pay-label {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- footer ------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0 46px;
  text-align: center;
}

.quote {
  max-width: 40rem;
  margin: 0 auto 30px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
  color: var(--quote);
  text-wrap: balance;
}

.footer-mark a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-mark a:hover { color: var(--link); }
.footer-mark sup { font-size: 9px; color: var(--ink-3); vertical-align: super; }

.domains {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.domains span { white-space: nowrap; }
.domains span + span::before {
  content: "·";
  margin: 0 8px;
  color: #cfc7b8;
}

.legal {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: #b3aa9c;
}

/* ---------- narrow screens ---------------------------------- */

@media (max-width: 640px) {
  .masthead { padding: 26px 0 20px; }
  .wordmark a { font-size: 23px; }

  .nav { padding: 18px 0 4px; }
  .nav ul { width: 100%; flex-direction: column; gap: 1px; border-radius: 10px; }
  .nav li > a { text-align: center; padding: 11px 16px; }

  /* Hover submenus are useless on touch, so they sit open in the flow. */
  .nav ul ul {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 2px 0 6px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav li:hover > ul, .nav li:focus-within > ul { transform: none; }
  .nav ul ul li > a { text-align: center; font-size: 13.5px; color: var(--ink-3); }
  .nav li:hover > a, .nav li:focus-within > a { background: transparent; color: #3c4757; }
  .nav li > a:hover { background: #4a72b8; color: #fff; }
  .has-sub > a::after { display: none; }

  main { padding: 30px 0 40px; }
  .notice { padding: 30px 22px; }
  .quote { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
