/* Porta Pagi landing. One stylesheet, no scripts. The portal's own faces
   and palette (porta-pagi frontend/src/styles.css), so the page and the
   screenshots on it are one thing. */

@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/alegreya-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/alegreya-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-400-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-400-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/im-fell-english-400-normal-latin.woff2) format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/im-fell-english-400-italic-latin.woff2) format("woff2"); }
@font-face { font-family: "IM Fell English SC"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/im-fell-english-sc-400-normal-latin.woff2) format("woff2"); }

:root {
  --wood: #2b1d12; --wood2: #4a3222; --wood3: #6b4a2f;
  --parch: #f1e4c6; --parch2: #e4d2a8; --parch3: #d6c08f;
  --ink: #2c2416; --ink2: #5a4a34; --ink3: #857055;
  --brass: #c7a24a; --brass2: #e0c072;
  --red: #8a2f2f; --green: #4a7c3f;
  --shadow: 0 2px 0 #1a100a, 0 6px 14px rgba(0,0,0,.35);
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--parch); color: var(--ink);
  font: 400 1.125rem/1.5 "Alegreya", Georgia, serif;
}
h1, h2, h3 { font-family: "IM Fell English SC", "IM Fell English", Georgia, serif; font-weight: 400; letter-spacing: .02em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: .5rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; max-width: var(--measure); }
ul { margin: 0 0 1rem; padding-left: 1.2rem; max-width: var(--measure); }
li { margin-bottom: .45rem; }
a { color: var(--wood3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
em { font-style: italic; }
strong { font-weight: 700; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--parch2); padding: .05em .3em; border-radius: 3px; }

.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--parch3); }
.lede { font-size: 1.25rem; color: var(--ink2); }
.small { font-size: .95rem; color: var(--ink3); }

/* Hero: the dark band the portal wears, the demo's map beside the words. */
.hero { background: var(--wood); color: var(--parch); padding: 3rem 0 3.5rem; }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
.hero h1 { color: var(--brass2); }
.hero p { color: var(--parch2); }
.hero .lede { color: var(--parch); }
.hero .phone { justify-self: center; }
.brand { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.6rem; font-family: "IM Fell English SC", Georgia, serif; font-size: 1.4rem; color: var(--brass2); }
.brand span { font-family: "Alegreya", Georgia, serif; font-size: .95rem; color: var(--parch2); letter-spacing: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.btn {
  display: inline-block; padding: .65rem 1.2rem; border-radius: 10px; border: 2px solid var(--wood2);
  background: linear-gradient(var(--parch), var(--parch2)); color: var(--ink); text-decoration: none;
  font-family: "IM Fell English SC", Georgia, serif; font-size: 1.15rem; box-shadow: var(--shadow);
}
.btn.primary { background: linear-gradient(var(--brass2), var(--brass)); border-color: #7a5d1f; }
.btn:hover { color: var(--ink); filter: brightness(1.05); }
.hero .offer { margin-top: .5rem; padding-top: 1rem; border-top: 1px dotted var(--wood3); }

/* Screenshots are phone-width captures of the demo village. */
.phone {
  display: block; width: 100%; max-width: 300px; height: auto; border-radius: 26px;
  border: 5px solid var(--wood2); background: var(--wood); box-shadow: var(--shadow);
}
figure { margin: 0; }
figcaption { margin-top: .6rem; }

/* The problem: three lines of a chat, then the sentence. */
.chat { list-style: none; padding: 0; margin: 1rem 0 1.5rem; max-width: 30rem; }
.chat li { background: var(--parch2); border-radius: 14px; padding: .55rem .9rem; margin: .5rem 0; width: fit-content; max-width: 100%; }
.chat li.gap { background: none; color: var(--ink3); font-style: italic; padding-left: .3rem; }
.chat li.me { margin-left: auto; background: var(--brass2); }
.said { font-family: "IM Fell English", Georgia, serif; font-size: 1.5rem; color: var(--wood3); margin: 0 0 1rem; }

/* The rooms: a grid of figures. */
.rooms { display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; margin-top: 2rem; }
.rooms figure { display: grid; gap: .8rem; justify-items: start; }
.rooms .phone { max-width: 240px; }
.rooms h3 { margin-bottom: .2rem; }
.rooms figcaption p { margin: 0; }
.door { margin-top: 2rem; padding: 1rem 1.2rem; background: var(--parch2); border-left: 4px solid var(--brass); max-width: var(--measure); }

/* Never, and yours to switch on: two lists side by side. */
.two { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.two > div { padding: 1.4rem 1.5rem; border-radius: 12px; border: 2px solid var(--parch3); background: #f6ecd6; }
.two h3 { margin-bottom: .8rem; }
.two ul { padding-left: 1.1rem; }
.never { border-color: var(--red) !important; }
.never h3 { color: var(--red); }
.yours { border-color: var(--green) !important; }
.yours h3 { color: var(--green); }

/* Price: two columns, the setup fee under. */
.price { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.price > div { padding: 1.5rem 1.6rem; border-radius: 12px; border: 2px solid var(--wood2); background: #f6ecd6; box-shadow: var(--shadow); }
.price .amount { font-family: "IM Fell English SC", Georgia, serif; font-size: 2rem; color: var(--wood3); margin: .2rem 0 .8rem; }
.price ul { margin-bottom: 0; }

/* FAQ */
dl { max-width: var(--measure); margin: 1.5rem 0 0; }
dt { font-family: "IM Fell English SC", Georgia, serif; font-size: 1.25rem; margin-top: 1.2rem; }
dd { margin: .3rem 0 0; }

footer { background: var(--wood); color: var(--parch2); padding: 2.5rem 0; }
footer a { color: var(--brass2); }
footer p { margin-bottom: .6rem; }

@media (min-width: 700px) {
  .hero .wrap { grid-template-columns: 1.3fr 1fr; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .two, .price { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .rooms { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
