/* Mayflow Digital. The same paper and ink as cassiemay.io, set more formally.
   Paper and ink carry it. Lake draws the contours. Copper marks the one thing to click. */

@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-regular.ttf") format("truetype"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-italic.ttf") format("truetype"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --paper: #f4f2ed;
  --ink: #171710;
  --soft: #3a3932;
  --rule: rgba(23, 23, 16, 0.34);
  --lake: #1d4b59;
  --copper: #a35a30;
  --on-copper: #fbf8f2;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(1rem, 5vw, 4.5rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--lake); color: var(--paper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 50; padding: .6rem .9rem; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Header: the mark, nothing else */
.site-header { padding-top: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--ink); }
.brand { display: inline-block; width: 9.5rem; }

/* The first screen */
.fold { position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contours path { fill: none; stroke: var(--lake); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .28; }
.fold-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(2.5rem, 7vh, 5rem); padding-bottom: clamp(2.5rem, 7vh, 5rem); }
h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 14ch; }
.lede { margin: 1rem 0 0; font-size: 1.1rem; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem; background: var(--copper); color: var(--on-copper); text-decoration: none; font-weight: 600; line-height: 1.1; }
.button:hover { filter: brightness(1.08); }
.button svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 2; }
.text-link { color: var(--lake); font-weight: 600; }
.text-link:hover { color: var(--ink); }
.fine { margin: 1rem 0 0; font-size: .95rem; color: var(--soft); }

/* The register, same table as cassiemay.io, upright instead of italic */
.register { position: relative; background: var(--paper); border: 1px solid var(--ink); }
.register-head { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .8rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.register-rows { margin: 0; }
.register-rows div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; border-top: 1px solid var(--rule); }
.register-rows div:first-child { border-top: 0; }
.register-rows dt { align-self: stretch; padding: .8rem .9rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border-right: 1px solid var(--rule); }
.register-rows dd { margin: 0; padding: .7rem .9rem; font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.35; }

/* How, why, who: three equal columns */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 4rem); padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.terms h2 { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding-bottom: .6rem; margin-bottom: .9rem; border-bottom: 1px solid var(--ink); }
.terms ol, .terms ul { margin: 0; padding-left: 1.2rem; }
.terms li { margin: 0 0 .35rem; font-family: var(--serif); font-size: 1.1rem; line-height: 1.4; }
.terms p { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.4; }

/* Footer, one line like cassiemay.io */
.site-footer { border-top: 1px solid var(--ink); padding: 1.75rem 0 2.25rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; font-size: .9rem; color: var(--soft); }
.footer-inner p { margin: 0; }
.sign-off { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 1100px) { .register-head span:last-child { display: none; } }
@media (max-width: 900px) {
  .fold-inner, .terms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .register-rows div { grid-template-columns: minmax(0, 1fr); }
  .register-rows dt { border-right: 0; padding-bottom: 0; }
  .register-rows dd { padding-top: .2rem; }
  .register-head span:last-child { display: none; }
  .brand { width: 8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
