/* epistle.email: landing, sign-up, contact. Palette = brand/ (README "Brand"). */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url(/assets/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(/assets/inter-latin-wght-normal.woff2) format("woff2"); }

:root {
  --tyrian: #4A1238; --deep: #2A0820; --night: #1E0617; --papyrus: #F4EBD6; --paper: #FAF5EA;
  --wax: #A3242B; --gold: #C9A24A; --ink: #2A1A24; --muted: #6E5A66; --line: #E4D6B8; --ok: #2F7A55;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* the purple ground the app's sign-in uses */
.purple { background: radial-gradient(120% 80% at 50% 0%, #5A1745 0%, var(--tyrian) 38%, var(--deep) 100%); color: var(--papyrus); }

/* ---------- landing ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 24px 40px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, rgba(30,6,23,.45)); pointer-events: none; }
.icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(244,235,214,.08); }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: clamp(64px, 11vw, 112px); line-height: 1; margin: 28px 0 10px; letter-spacing: -.01em; }
.tagline { font-size: clamp(17px, 2.2vw, 21px); color: rgba(244,235,214,.78); margin: 0 0 8px; }
.address { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); color: var(--gold); margin: 6px 0 40px; }
.address b { color: var(--papyrus); font-weight: 600; }
.ctas { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 380px; position: relative; z-index: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; border-radius: 999px; font: 600 18px/1 var(--sans);
  text-decoration: none; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn-gold { background: var(--papyrus); color: var(--tyrian); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.btn-gold:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--papyrus); box-shadow: inset 0 0 0 1.5px rgba(244,235,214,.45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--papyrus); background: rgba(244,235,214,.06); }
.btn-purple { background: var(--tyrian); color: var(--papyrus); width: 100%; }
.btn-purple:hover { background: #5A1745; }
.btn-purple[disabled] { opacity: .5; cursor: not-allowed; }
.fine-light { font-size: 14px; color: rgba(244,235,214,.6); margin-top: 18px; position: relative; z-index: 1; }
.scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(244,235,214,.5); font-size: 13px; z-index: 1; text-decoration: none; }

.features { max-width: 1120px; margin: 0 auto; padding: 96px 24px 40px; }
.kicker { font: 600 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--wax); margin: 0 0 14px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; margin: 0 0 16px; color: var(--tyrian); }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
/* the feature cards are unrolled papyrus scrolls lying on the table: rolled ends top and bottom (the same rod as the
   app's swipe), fibres, darker edges, a soft shadow; quill silhouettes in Tyrian purple behind them */
.features { position: relative; overflow-x: clip; }
.features > * { position: relative; z-index: 1; }
.features > .quills { position: absolute; inset: 40px -40px 0; z-index: 0; pointer-events: none; opacity: .13;
  background: url(/assets/quill.svg) no-repeat 97% 0 / 130px auto, url(/assets/quill.svg) no-repeat 0 70% / 160px auto,
    url(/assets/quill.svg) no-repeat 60% 100% / 100px auto; }
.card { position: relative; margin: 14px 4px; padding: 30px 26px 28px; border-radius: 3px;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(255,250,240,.55), rgba(255,250,240,0) 60%),
    repeating-linear-gradient(90deg, rgba(150,120,70,.045) 0 1px, transparent 1px 5px, rgba(150,120,70,.03) 5px 7px, transparent 7px 13px),
    linear-gradient(90deg, #E6D6B2, #F4EBD6 12%, #F7EFDC 50%, #F1E5CB 88%, #E2D0A8);
  box-shadow: inset 0 0 22px rgba(140,105,55,.18), 0 18px 26px -16px rgba(42,8,32,.45); }
.card::before, .card::after { content: ""; position: absolute; left: -10px; right: -10px; height: 18px; border-radius: 9px;
  background:
    linear-gradient(90deg, #4A1238 0 9px, transparent 9px calc(100% - 9px), #4A1238 calc(100% - 9px)),
    linear-gradient(180deg, #a8916a, #F4EBD6 35%, #fffaf0 55%, #b9a47c);
  box-shadow: 0 4px 8px rgba(42,8,32,.28); }
.card::before { top: -11px; } .card::after { bottom: -11px; }
.card .glyph { width: 40px; height: 40px; margin-bottom: 12px; }
.card h3 { font: 600 25px/1.15 var(--serif); color: var(--tyrian); margin: 0 0 8px; }
.card p { margin: 0; color: #5E4A52; font-size: 15.5px; }
.grid { gap: 40px 34px; }

.show { max-width: 1120px; margin: 0 auto; padding: 40px 24px 120px; position: relative; }
.show .desk { width: 86%; border-radius: 18px; box-shadow: 0 30px 80px rgba(42,8,32,.25); border: 1px solid var(--line); }
.show .phone { position: absolute; right: 24px; bottom: 64px; width: 22%; filter: drop-shadow(0 30px 50px rgba(42,8,32,.35)); }
@media (max-width: 760px) { .show .desk { width: 100%; } .show .phone { position: static; width: 62%; margin: -90px auto 0; } .show { padding-bottom: 80px; } }

.band { margin: 0 24px 96px; border-radius: 30px; padding: 64px 32px; text-align: center; }
.band h2 { color: var(--papyrus); }
.band p { color: rgba(244,235,214,.75); font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.band .ctas { margin: 0 auto; }

footer { border-top: 1px solid var(--line); padding: 28px 24px 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--tyrian); }
footer .seal { font-family: var(--serif); font-size: 22px; color: var(--tyrian); display: block; margin-bottom: 8px; }

/* ---------- forms (sign-up, contact) ---------- */
.formpage { overflow-x: clip; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 28px 18px 48px; }
.formtop { width: 100%; max-width: 520px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--papyrus); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.formtop .alt { color: rgba(244,235,214,.75); font-size: 15px; text-decoration: none; }
.formtop .alt b { color: var(--papyrus); }
.formhead { width: 100%; max-width: 520px; margin-bottom: 22px; }
.formhead h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 7vw, 54px); line-height: 1.02; margin: 0 0 8px; }
.formhead p { margin: 0; color: rgba(244,235,214,.75); font-size: 17px; }
.panel { width: 100%; max-width: 520px; background: var(--paper); color: var(--ink); border-radius: 26px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.field label .opt { font-weight: 500; color: var(--muted); font-size: 13px; background: var(--papyrus); padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.input, select, textarea { width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 0 16px; font: 500 17px var(--sans); color: var(--ink); outline: none; transition: border-color .12s; }
textarea { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.input:focus, select:focus, textarea:focus, .addr:focus-within { border-color: var(--tyrian); box-shadow: 0 0 0 3px rgba(74,18,56,.1); }
.addr { display: flex; align-items: center; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; overflow: hidden; }
.addr input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 4px 0 16px; font: 500 17px var(--sans); outline: none; background: transparent; color: var(--ink); }
.addr .dom { padding: 0 16px 0 2px; color: var(--muted); font-weight: 500; font-size: 17px; white-space: nowrap; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; min-height: 1em; }
.hint.ok { color: var(--ok); } .hint.bad { color: var(--wax); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; gap: 0; } .panel { padding: 24px 20px; } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 8px 0 18px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.error { background: #FBE9E7; color: var(--wax); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 16px; }
.fine { color: var(--muted); font-size: 13.5px; text-align: center; margin: 14px 0 0; }
.fine a { color: var(--tyrian); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 10px 0; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--papyrus); color: var(--tyrian); display: grid; place-items: center; margin: 0 auto 16px; }
.done h2 { font-size: 36px; margin-bottom: 6px; }
.done p { color: var(--muted); margin: 0 0 22px; }
.done .who { font-family: var(--serif); font-size: 26px; color: var(--tyrian); margin: 0 0 22px; word-break: break-all; }
.done .stack { display: flex; flex-direction: column; gap: 10px; }
.btn-line { background: #fff; color: var(--tyrian); box-shadow: inset 0 0 0 1.5px var(--line); width: 100%; }
.points { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; color: rgba(244,235,214,.85); font-size: 16px; }
.points li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 8px; }
.formfoot { color: rgba(244,235,214,.55); font-size: 13.5px; margin-top: 24px; text-align: center; }
.formfoot a { color: rgba(244,235,214,.8); text-decoration: none; margin: 0 8px; }

/* ---------- technology ---------- */
.techhead { display: flex; flex-direction: column; align-items: center; padding: 28px 18px 56px; }
.techhead .formtop, .techhead .formhead { max-width: 1072px; }
.techhead .formhead h1 { font-size: clamp(48px, 8vw, 72px); }
.techhead .formhead p { max-width: 620px; }
.grid2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.card .kicker { margin: 0 0 4px; font-size: 12px; color: var(--wax); }
main.features { padding-top: 64px; }
.card a { color: var(--tyrian); font-weight: 600; text-decoration-color: rgba(74,18,56,.35); text-underline-offset: 3px; }
.thanks { text-align: center; color: var(--muted); font-family: var(--serif); font-size: 21px; margin: 56px auto 0; max-width: 620px; }

/* ---------- the scrolls (feature cards), for real: textured papyrus, curl shadows by the rolls, aged edges; each roll is a papyrus
   cylinder whose ends (roll-cap.svg) show the sheet's spiral, a dowel, a gold collar and a turned wooden knob.
   --r = the roll's height; everything else follows from it. ---------- */
.card { --r: 30px; border-radius: 1px;
  background:
    linear-gradient(180deg, rgba(92,62,26,.30), rgba(92,62,26,0) 26px) top / 100% 26px no-repeat,
    linear-gradient(0deg, rgba(92,62,26,.30), rgba(92,62,26,0) 26px) bottom / 100% 26px no-repeat,
    linear-gradient(90deg, rgba(140,100,45,.22), rgba(140,100,45,0) 7%, rgba(140,100,45,0) 93%, rgba(140,100,45,.22)),
    radial-gradient(130% 100% at 50% 50%, rgba(255,250,236,.35), rgba(255,250,236,0) 55%),
    url(/assets/papyrus.webp) 0 0 / 256px 256px #EFE2C4;
  box-shadow: inset 0 0 0 1px rgba(150,112,58,.25), inset 0 0 24px rgba(150,110,52,.22), 0 22px 30px -18px rgba(42,8,32,.5); }
.card::before, .card::after {
  height: var(--r); left: calc(var(--r) * -.675); right: calc(var(--r) * -.675); border-radius: 0; box-shadow: none;
  background:
    url(/assets/roll-cap.svg) left center / auto 100% no-repeat,
    url(/assets/roll-cap-r.svg) right center / auto 100% no-repeat,
    linear-gradient(180deg, #8f764c 0%, #cdb68a 12%, #efe2c4 30%, #fbf5e6 42%, #efe2c4 60%, #c4ab7c 85%, #83693f 100%)
      center / calc(100% - var(--r) * 1.7 + 2px) 70% no-repeat;
  filter: drop-shadow(0 3px 3px rgba(60,35,15,.35)); }
.card::before { top: calc(var(--r) * -.55); }
.card::after { bottom: calc(var(--r) * -.55); }
.grid { column-gap: 56px; row-gap: 56px; }
.card { margin: 16px 0; }

/* ---------- sign-up = the twin of the webmail's sign-in (sogo-client scss/epistle/_epistle.scss "Login"):
   deep purple page, logo top-left, a 432px papyrus card, labelled bordered inputs, pill button, a verse below ---------- */
html.auth { min-height: 100%; background: #2a0820; }
html.auth, body.auth { min-height: 100vh; margin: 0; color: #2a1a24;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(201,162,74,.10) 0%, rgba(201,162,74,0) 70%),
    radial-gradient(1100px 700px at 0% 110%, rgba(110,30,80,.45) 0%, rgba(110,30,80,0) 70%),
    linear-gradient(160deg, #2a0820 0%, #4a1238 100%);
  background-attachment: fixed; }
.auth-header { position: fixed; top: 0; left: 0; right: 0; padding: 28px 40px; z-index: 2; }
.auth-header img { height: 36px; width: auto; display: block; }
.auth-card { width: 432px; max-width: calc(100vw - 32px); box-sizing: border-box; margin: 128px auto 48px;
  background: #fbf7ef; border: 1px solid #ede5d8; border-radius: 16px; padding: 40px 40px 32px;
  box-shadow: 0 2px 6px rgba(30,4,20,.2), 0 24px 64px rgba(30,4,20,.4); }
.auth-heading { margin-bottom: 24px; }
.auth-heading h1 { margin: 0; font: 600 34px/40px var(--serif); color: #2a1a24; }
.auth-heading p { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: #6b5a63; }
.auth-field { margin: 0 0 16px; }
.auth-field label { display: block; margin-bottom: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: #2a1a24; }
.auth-field label .opt { font-weight: 400; color: #9a8a92; }
.auth-input { display: block; width: 100%; height: 44px; box-sizing: border-box; padding: 0 14px; background: #fff; color: #2a1a24;
  font: 400 15px var(--sans); border: 1px solid #dcd0be; border-radius: 8px; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-input:hover { border-color: #9a8a92; }
.auth-input:focus, .auth-addr:focus-within { border-color: #4a1238; box-shadow: 0 0 0 3px rgba(74,18,56,.22); }
.auth-input::placeholder { color: #9a8a92; }
.auth-addr { display: flex; align-items: center; padding: 0 14px; }
.auth-addr input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: 400 15px var(--sans); color: #2a1a24; padding: 0; }
.auth-addr .dom { color: #6b5a63; font-size: 15px; white-space: nowrap; }
.auth-pw { position: relative; }
.auth-pw .auth-input { padding-right: 44px; }
.auth-pw .eye { position: absolute; right: 8px; top: 7px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: #9a8a92; cursor: pointer; border-radius: 6px; }
.auth-pw .eye:hover, .auth-pw .eye.on { color: #2a1a24; }
.auth-card .hint { font-size: 13px; line-height: 18px; color: #6b5a63; margin-top: 6px; min-height: 0; }
.auth-card .hint:empty { display: none; }
.auth-card .hint.ok { color: #2f7a55; } .auth-card .hint.bad { color: #b3261e; }
.auth-error { color: #b3261e; font-size: 14px; margin: -4px 0 4px; }
.auth-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin: 16px 0 0; border: 0;
  border-radius: 999px; background: #4a1238; color: #fff; font: 600 15px var(--sans); cursor: pointer; text-decoration: none; }
.auth-button:hover:not([disabled]) { background: #5c1a47; }
.auth-button:active:not([disabled]) { background: #3a0d2c; }
.auth-button[disabled] { background: rgba(74,18,56,.45); color: rgba(255,255,255,.9); cursor: default; }
.auth-button.ghost { background: #fff; color: #4a1238; box-shadow: inset 0 0 0 1px #dcd0be; margin-top: 10px; }
.auth-button.ghost:hover { background: #faf4ea; }
.auth-alt { margin: 16px 0 0; text-align: center; font-size: 14px; color: #6b5a63; }
.auth-alt a { color: #4a1238; font-weight: 500; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-done .who { font: 600 22px/1.3 var(--serif); color: #4a1238; margin: -8px 0 8px; word-break: break-all; }
.epistle-verse { width: 432px; max-width: calc(100vw - 48px); box-sizing: border-box; margin: 0 auto; padding: 0 8px 48px; text-align: center; }
.epistle-verse-ref { font: 600 12px/16px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #c9a24a; }
.epistle-verse-text { margin: 10px 0 0; padding: 0; border: 0; font: 600 19px/27px var(--serif); color: #e8dccb; text-wrap: pretty; }
@media (max-width: 600px) {
  .auth-header { position: static; padding: 24px 16px 0; }
  .auth-header img { height: 32px; }
  .auth-card { margin: 32px auto; padding: 28px 20px 24px; border-radius: 12px; }
  .epistle-verse { padding-bottom: 32px; }
  .epistle-verse-text { font-size: 17px; line-height: 24px; }
}
