/* Constelia — a page of an old book, like the Almanac look of the app and the Constelia page on pesstudios.com:
   parchment, brown ink, engraved corners and ornaments. Colours from the app's skins/almanac.json. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #F1E2BF;
  --page: #EDD3A0;
  --ink: #2E2416;
  --muted: #5E4A2E;
  --accent: #7A5A20;
  --line: rgb(58 45 26 / 30%);
  --serif: "EB Garamond", Garamond, "Palatino Linotype", Palatino, Georgia, serif;
  --title: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 var(--serif);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
img { max-width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; color: var(--ink); }

/* Top bar: the edge of the same parchment page. */
.header { background: var(--page) url("assets/paper.webp") center top / cover; border-bottom: 1px solid var(--line); }
.header-inner, main, footer { max-width: 1120px; margin: auto; padding-left: 32px; padding-right: 32px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font: 600 26px var(--title); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.lang { color: var(--muted); font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.lang:hover { color: var(--ink); }

/* Hero: a parchment page in a double ink frame with engraved corners. */
.hero { background: var(--page) url("assets/paper.webp") center / cover; padding: 30px 32px 38px; border-bottom: 1px solid var(--line); }
.frame { position: relative; max-width: 1056px; margin: 0 auto; border: 3px double rgb(46 36 22 / 75%); outline: 1px solid rgb(46 36 22 / 30%); outline-offset: 5px; }
.frame::before, .frame::after, .frame > .corners::before, .frame > .corners::after {
  content: ""; position: absolute; width: 64px; height: 64px; pointer-events: none; background: center / contain no-repeat;
}
.frame::before { top: -12px; left: -12px; background-image: url("assets/corner-tl.webp"); }
.frame::after { top: -12px; right: -12px; background-image: url("assets/corner-tr.webp"); }
.frame > .corners::before { bottom: -12px; left: -12px; background-image: url("assets/corner-bl.webp"); }
.frame > .corners::after { bottom: -12px; right: -12px; background-image: url("assets/corner-br.webp"); }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px clamp(24px, 5vw, 64px); }
.hero h1 { font-size: clamp(56px, 9vw, 92px); line-height: 1; margin: 0; }
.divider { display: block; width: min(100%, 20rem); height: auto; margin: 12px 0 0; }
.tagline { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.45; margin: 18px 0 12px; max-width: 32rem; }
.intro { color: var(--muted); margin: 0 0 28px; max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.button { display: inline-block; padding: 12px 28px; border-radius: 999px; background: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; }
a.button { color: #F7EDD3; }
a.button:hover { background: #4A3A22; }
.soon { color: var(--muted); font-style: italic; font-size: 17px; }
.soon::before { content: "✦ "; color: var(--accent); font-style: normal; }
.actions-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.phone { width: min(100%, 270px); }
.phone img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid rgb(122 90 32 / 60%); box-shadow: 0 14px 36px rgb(74 52 20 / 28%); }

/* Sections: a heading with the app's ornament under it, fine lines instead of heavy boxes. */
section.block { padding: 56px 0 8px; }
.block h2 { font-size: clamp(32px, 4.5vw, 42px); line-height: 1.1; margin: 0; text-align: center; }
.block h2::after { content: ""; display: block; width: min(100%, 15rem); height: 22px; margin: 8px auto 30px; background: url("assets/divider.webp") center / contain no-repeat; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.features li { border-top: 1px solid var(--line); padding-top: 16px; }
.features h3 { font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
.features h3::before { content: "✦ "; font-size: 15px; color: var(--accent); vertical-align: 4px; }
.features p { margin: 0; color: var(--muted); font-size: 17px; }

.shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 6px 18px rgb(74 52 20 / 20%); }
.shots a { display: block; cursor: zoom-in; transition: transform .2s ease; }
.shots a:hover, .shots a:focus-visible { transform: translateY(-3px); }
/* The enlarged preview, without JavaScript: a link to #shot-NN shows it, a click anywhere closes it
   (it links to a fragment with no element, so the page does not scroll). */
.zoom { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 3vh 3vw;
  background: rgb(245 236 218 / 88%); backdrop-filter: blur(4px); cursor: zoom-out; }
.zoom:target { display: grid; animation: zoom-in .25s ease; }
.zoom img { max-width: 100%; max-height: 94vh; width: auto; height: auto; border-radius: 14px;
  box-shadow: 0 14px 44px rgb(74 52 20 / 30%); }
@keyframes zoom-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .shots a, .zoom:target { transition: none; animation: none; } }

.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.promises strong { display: block; font: 600 23px/1.2 var(--title); margin-bottom: 6px; }
.promises span { color: var(--muted); font-size: 16px; }
.note { max-width: 40rem; margin: 40px auto 0; text-align: center; font-style: italic; color: var(--muted); }

.closing { text-align: center; padding: 56px 0 64px; }
.closing p { margin: 0 0 20px; font: 600 clamp(26px, 3.5vw, 34px)/1.25 var(--title); }

footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }
.motto { font: italic 600 20px var(--title); color: var(--accent); }

/* Privacy policy pages. */
.legal { max-width: 720px; margin: auto; padding: 36px 0 64px; }
.legal h1 { font-size: clamp(38px, 5vw, 54px); line-height: 1.1; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
.legal h2 { font-size: 27px; line-height: 1.3; color: var(--accent); margin: 32px 0 8px; }
.legal p, .legal li { font-size: 17px; }
.legal ul { padding-left: 20px; }

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .shots li { scroll-snap-align: start; }
  .promises { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { font-size: 17px; }
  .header-inner, main, footer { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 18px 14px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 34px 20px 38px; text-align: center; }
  .divider, .tagline, .intro { margin-left: auto; margin-right: auto; }
  .actions { flex-direction: column; }
  .phone { justify-self: center; width: min(78%, 250px); }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .shots { grid-auto-columns: 62%; }
  section.block { padding-top: 44px; }
  footer { flex-direction: column; text-align: center; }
}
