/* proustagram — an account that reads Proust slowly.
   The universe of the feed: books on café tables, marble and brass, a black
   and white portrait. Paper and ink, a claret for what can be clicked, brass
   for ornament; a Didone for titles (the "Marcel PROUST" of the covers), a
   Garamond for reading. Laid out like bernardpoignant.fr: dark bar, compact
   hero with the portrait, search, a grid of tiles, the letter, the footer. */

:root {
  --paper: #faf6ef;
  --paper-deep: #f2ebdf;
  --card: #fffdf9;
  --ink: #211d1a;
  --ink-2: #2e2925;
  --ink-soft: #6b625a;
  --line: #e3dbcd;
  --claret: #7a2f45;
  --claret-dark: #5d2234;
  --gold: #9a7b36;
  --gold-light: #c9a95c;
  --ok: #3d6b4a;
  --danger: #9b2c2c;
  --display: "Playfair Display", "Bodoni 72", Didot, Georgia, serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(33, 29, 26, .06), 0 8px 24px rgba(33, 29, 26, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--serif);
       min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--claret); text-decoration: none; transition: color .2s; }
a:hover { color: var(--claret-dark); }
button, input, textarea, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink-soft); }

/* ─── Navbar ─────────────────────────────────────────── */
.navbar { background: var(--ink); color: var(--paper); height: 68px; padding: 0 1.5rem;
          display: flex; align-items: center; justify-content: space-between;
          position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
          border-bottom: 1px solid rgba(201, 169, 92, .35); }
.navbar-brand { display: flex; align-items: center; gap: .75rem; color: var(--paper);
                font: 600 1.45rem/1 var(--display); letter-spacing: .01em; }
.navbar-brand:hover { color: var(--paper); }
.navbar-brand img, .navbar-brand .monogram { width: 42px; height: 42px; border-radius: 50%;
          object-fit: cover; border: 2px solid var(--gold-light); filter: grayscale(1); }
.navbar-brand .monogram { display: grid; place-items: center; background: var(--paper);
          color: var(--ink); font-size: 1.2rem; }
.navbar-brand em { color: var(--gold-light); font-style: italic; }
.nav-links { display: flex; list-style: none; gap: .25rem; align-items: center; }
.nav-links a { color: rgba(250, 246, 239, .82); font: 500 .86rem/1 var(--sans);
               padding: .6rem .8rem; border-radius: 999px; display: inline-flex; gap: .45rem; align-items: center; }
.nav-links a:hover { color: var(--paper); background: rgba(255, 255, 255, .07); }
.nav-links a.active { color: var(--ink); background: var(--gold-light); }
.menu-toggle { display: none; background: none; border: 0; color: var(--paper); font-size: 1.3rem; cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink);
               flex-direction: column; align-items: stretch; padding: .75rem 1rem 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; }
}

/* ─── Alerts ─────────────────────────────────────────── */
.flashes { max-width: 860px; margin: 1rem auto 0; padding: 0 1rem; }
.alert { padding: .8rem 1.1rem; border-radius: 10px; margin-bottom: .6rem; font: 400 .95rem/1.5 var(--sans);
         border: 1px solid var(--line); background: var(--card); display: flex; gap: .6rem; align-items: baseline; }
.alert-success { border-color: #b9d3bf; background: #f1f7f2; color: var(--ok); }
.alert-danger { border-color: #e2b8b8; background: #fbf1f1; color: var(--danger); }
.alert-info { border-color: #e5d6b0; background: #fbf6ea; color: #6d5422; }

/* ─── Hero ───────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 3.2rem 1.25rem 2.6rem;
        background:
          radial-gradient(1200px 300px at 80% -10%, rgba(201, 169, 92, .18), transparent 60%),
          radial-gradient(800px 260px at 0% 110%, rgba(122, 47, 69, .10), transparent 60%),
          var(--paper-deep);
        border-bottom: 1px solid var(--line); }
.hero::after { /* marble veining, faint */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(115deg, transparent 0 38px, rgba(33, 29, 26, .018) 38px 39px, transparent 39px 90px); }
.hero-row { position: relative; z-index: 1; max-width: 980px; margin: 0 auto;
            display: flex; align-items: center; gap: 2.2rem; }
.hero-portrait { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; flex: none;
                 border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--gold), var(--shadow);
                 filter: grayscale(1) contrast(1.05); }
.hero-text h1 { font: 700 clamp(2.4rem, 6vw, 3.6rem)/1.02 var(--display); letter-spacing: -.01em; }
.hero-text h1 em { color: var(--claret); }
.hero-tagline { font: italic 400 1.35rem/1.4 var(--serif); color: var(--ink-2); margin-top: .45rem; }
.hero-sub { font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
            color: var(--gold); margin-top: .9rem; }
.hero-stats { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.2rem; font: 400 .9rem/1.3 var(--sans);
              color: var(--ink-soft); align-items: center; }
.hero-stats strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .hero { padding: 2.2rem 1rem 2rem; }
  .hero-row { flex-direction: column; text-align: center; gap: 1.2rem; }
  .hero-portrait { width: 116px; height: 116px; }
  .hero-stats { justify-content: center; }
}

/* ─── Buttons ────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
       font: 600 .9rem/1 var(--sans); padding: .8rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
       transition: background .2s, color .2s, border-color .2s, transform .1s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--claret); color: #fff; }
.btn-primary:hover { background: var(--claret-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold { background: var(--gold-light); color: var(--ink); }
.btn-gold:hover { background: var(--gold); color: #fff; }
.btn-small { padding: .5rem .9rem; font-size: .8rem; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn-danger { background: transparent; border-color: #e2b8b8; color: var(--danger); }

/* ─── Sections ───────────────────────────────────────── */
.section { max-width: 1180px; margin: 0 auto; padding: 2.4rem 1.25rem; }
.section.narrow { max-width: 760px; }
.section-title { font: 700 1.9rem/1.15 var(--display); margin-bottom: .4rem; }
.section-lede { color: var(--ink-soft); margin-bottom: 1.6rem; font-size: 1.1rem; }
.ornament { text-align: center; color: var(--gold); letter-spacing: .6em; margin: .4rem 0 1.4rem; font-size: .9rem; }

/* ─── Search & filters ───────────────────────────────── */
.search { max-width: 580px; margin: 0 auto 1.2rem; display: flex; gap: .5rem; }
.search input { flex: 1; min-width: 0; padding: .85rem 1.2rem; border: 1.5px solid var(--line); border-radius: 999px;
                background: var(--card); font: 400 1rem/1.2 var(--sans); outline: none; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 169, 92, .18); }
.chips { display: flex; gap: .45rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chip { font: 500 .82rem/1 var(--sans); padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line);
        color: var(--ink-soft); background: var(--card); }
.chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.results-note { text-align: center; color: var(--ink-soft); margin: -0.6rem 0 1.6rem; font-family: var(--sans); font-size: .9rem; }

/* ─── Tiles ──────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.6rem; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--card); color: var(--ink);
        border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
        transition: transform .25s, box-shadow .25s, border-color .25s; }
.tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
                background: linear-gradient(90deg, var(--claret), var(--gold-light)); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(33, 29, 26, .12); border-color: var(--gold-light); color: var(--ink); }
.tile-media { position: relative; aspect-ratio: 4 / 5; background: var(--paper-deep); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-media.blank { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--gold);
                    font: italic 400 3rem/1 var(--display); }
.tile-badge { position: absolute; top: .8rem; left: .8rem; z-index: 1; background: rgba(250, 246, 239, .94);
              color: var(--ink); font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
              padding: .42rem .65rem; border-radius: 999px; display: inline-flex; gap: .4rem; align-items: center; }
.tile-badge.pdf { background: var(--claret); color: #fff; }
.tile-badge.article { background: var(--ink); color: var(--paper); }
.tile-slides { position: absolute; top: .8rem; right: .8rem; z-index: 1; color: #fff; font-size: 1rem;
               text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.tile-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; position: relative; }
.tile-num { position: absolute; top: .55rem; right: 1rem; font: 700 2.3rem/1 var(--display); color: rgba(33, 29, 26, .06); }
.tile h3 { font: 600 1.18rem/1.3 var(--display); margin-bottom: .5rem; padding-right: 2.4rem; }
.tile p { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.tile-meta { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: .9rem;
             font: 400 .78rem/1 var(--sans); color: var(--ink-soft); }
.tile-meta .price { margin-left: auto; font-weight: 700; color: var(--claret); font-size: .9rem; }
.tile-cta { font: 600 .82rem/1 var(--sans); color: var(--claret); margin-top: .9rem; }
.tile-cta i { transition: transform .2s; }
.tile:hover .tile-cta i { transform: translateX(4px); }

.pager { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: 2.2rem;
         font-family: var(--sans); font-size: .9rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.empty i { font-size: 2.6rem; color: var(--gold); margin-bottom: .8rem; display: block; }

/* ─── Reading pages ──────────────────────────────────── */
.reading { max-width: 1120px; margin: 0 auto; padding: 2.2rem 1.25rem 1rem; }
.crumbs { font: 400 .82rem/1.4 var(--sans); color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--claret); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; gap: 1.6rem; } }
.post-text h1, .article-head h1, .page-title { font: 700 clamp(1.7rem, 3.6vw, 2.5rem)/1.15 var(--display); margin-bottom: .8rem; }
.post-meta { font: 400 .85rem/1.5 var(--sans); color: var(--ink-soft); display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.prose { font-size: 1.16rem; line-height: 1.75; }
.prose p { margin-bottom: 1em; }
.prose h2 { font: 600 1.45rem/1.3 var(--display); margin: 1.6em 0 .6em; }
.prose h3 { font: 600 1.2rem/1.3 var(--display); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1em 1.4em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { border-left: 3px solid var(--gold-light); padding: .2em 0 .2em 1.1em; margin: 1.2em 0;
                    font-style: italic; color: var(--ink-2); }
.prose img { border-radius: 10px; margin: 1.2em auto; }
.prose a { text-decoration: underline; text-decoration-color: rgba(122, 47, 69, .35); text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .4em .6em; text-align: left; }
.measure { max-width: 42rem; margin: 0 auto; }

/* Carousel — scroll-snap, no library; arrows are progressive enhancement. */
.carousel { border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow);
            position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .carousel { position: relative; top: 0; } }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img { flex: 0 0 100%; width: 100%; scroll-snap-align: center; object-fit: contain; max-height: 82vh; background: var(--ink); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
                border: 0; background: rgba(250, 246, 239, .9); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.carousel-btn.prev { left: .7rem; } .carousel-btn.next { right: .7rem; }
.carousel-dots { position: absolute; bottom: .8rem; left: 0; right: 0; display: flex; justify-content: center; gap: .35rem; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(250, 246, 239, .45); }
.carousel-dots span.on { background: var(--paper); }
.ig-link { display: inline-flex; gap: .5rem; align-items: center; font: 600 .85rem/1 var(--sans); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.4rem 0 0; padding-top: 1.4rem;
            border-top: 1px solid var(--line); font-family: var(--sans); font-size: .88rem; }
.post-nav a { max-width: 46%; }
.post-nav small { display: block; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.tags a { font: 500 .78rem/1 var(--sans); padding: .42rem .7rem; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); }

.article-head { text-align: center; max-width: 46rem; margin: 0 auto 2rem; }
.article-cover { max-width: 980px; margin: 0 auto 2.2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.lede { font: italic 400 1.3rem/1.55 var(--serif); color: var(--ink-2); }
.buybox { max-width: 42rem; margin: 2rem auto; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--gold-light);
          background: linear-gradient(180deg, #fffaf0, var(--card)); text-align: center; }
.buybox .price { font: 700 2rem/1 var(--display); color: var(--claret); margin: .4rem 0 1rem; }
.buybox small { display: block; margin-top: .8rem; font: 400 .82rem/1.5 var(--sans); color: var(--ink-soft); }
.source-note { font: 400 .85rem/1.5 var(--sans); color: var(--ink-soft); margin-top: 1.4rem; }

/* ─── Comments ───────────────────────────────────────── */
.comments { max-width: 46rem; margin: 2.6rem auto 0; padding: 0 0 2rem; }
.comments h2 { font: 600 1.5rem/1.2 var(--display); margin-bottom: 1.2rem; display: flex; gap: .6rem; align-items: baseline; }
.comments h2 small { font: 400 .85rem/1 var(--sans); color: var(--ink-soft); }
.comment-list { list-style: none; margin-bottom: 1.8rem; }
.comment { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
                  background: var(--paper-deep); color: var(--claret); font: 600 1rem/1 var(--display); }
.comment.ig .comment-avatar { background: linear-gradient(135deg, #f5d6a6, #d97a8c 55%, #8a5bbf); color: #fff; }
.comment-meta { font: 400 .8rem/1.4 var(--sans); color: var(--ink-soft); margin-bottom: .2rem; }
.comment-meta strong { color: var(--ink); font-weight: 600; margin-right: .4rem; }
.comment-text { font-size: 1.04rem; line-height: 1.55; overflow-wrap: anywhere; }
.comment-group { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 1.2rem 0 .2rem; }
.comment-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.comment-form h3 { font: 600 1.2rem/1.2 var(--display); margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field, .comment-form input[type=text], .comment-form input[type=email], .comment-form textarea {
  width: 100%; padding: .75rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: 400 .97rem/1.4 var(--sans); margin-bottom: .7rem; outline: none; }
.comment-form textarea { min-height: 120px; resize: vertical; font-family: var(--serif); font-size: 1.05rem; }
.field:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); }
.check { display: flex; gap: .6rem; align-items: flex-start; font: 400 .88rem/1.45 var(--sans); color: var(--ink-soft); margin: .2rem 0 1rem; }
.check input { margin-top: .2rem; accent-color: var(--claret); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-foot small { font: 400 .8rem/1.4 var(--sans); color: var(--ink-soft); max-width: 26rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ─── La lettre ──────────────────────────────────────── */
.lettre { background: var(--ink); color: var(--paper); padding: 3.2rem 1.25rem; margin-top: 2rem; position: relative; overflow: hidden; }
.lettre::before { content: "❦"; position: absolute; right: 6%; top: -1.5rem; font-size: 12rem; color: rgba(201, 169, 92, .07); line-height: 1; }
.lettre-inner { max-width: 640px; margin: 0 auto; text-align: center; position: relative; }
.lettre h2 { font: 700 2rem/1.15 var(--display); margin-bottom: .4rem; }
.lettre h2 em { color: var(--gold-light); }
.lettre p { color: rgba(250, 246, 239, .78); }
.lettre-form { margin-top: 1.4rem; display: grid; gap: .6rem; }
.lettre-form .form-row input, .lettre-form input[type=email] { width: 100%; padding: .85rem 1.1rem; border-radius: 999px;
     border: 1px solid rgba(250, 246, 239, .2); background: rgba(250, 246, 239, .06); color: var(--paper);
     font: 400 .97rem/1.2 var(--sans); outline: none; }
.lettre-form input::placeholder { color: rgba(250, 246, 239, .5); }
.lettre-form input:focus { border-color: var(--gold-light); }
.lettre-fine { font: 400 .78rem/1.4 var(--sans); margin-top: .9rem; color: rgba(250, 246, 239, .55) !important; }
.lettre-fine a { color: var(--gold-light); }

/* ─── Static pages ───────────────────────────────────── */
.page-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem clamp(1.2rem, 4vw, 3rem); box-shadow: var(--shadow); }
.card-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; max-width: 420px; margin: 1rem auto; }
.card-form label { display: block; font: 500 .85rem/1.4 var(--sans); margin-bottom: .9rem; }
.card-form input { display: block; width: 100%; margin-top: .3rem; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; }
.notice { text-align: center; max-width: 34rem; margin: 3rem auto; }
.notice i { font-size: 2.4rem; color: var(--gold); margin-bottom: 1rem; }
.notice h1 { font: 700 2rem/1.2 var(--display); margin-bottom: .8rem; }

/* ─── Footer ─────────────────────────────────────────── */
.footer { background: #181513; color: rgba(250, 246, 239, .7); text-align: center;
          padding: 2.6rem 1.25rem calc(2.2rem + env(safe-area-inset-bottom, 0px)); font: 400 .88rem/1.6 var(--sans); }
.footer-brand { font: 700 1.6rem/1 var(--display); color: var(--paper); margin-bottom: .4rem; }
.footer-brand em { color: var(--gold-light); }
.footer-tag { font: italic 400 1.05rem/1.4 var(--serif); }
.footer-social { display: flex; justify-content: center; gap: .7rem; margin: 1.1rem 0; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
                   border: 1px solid rgba(250, 246, 239, .2); color: var(--paper); }
.footer-social a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; margin-top: .8rem; }
.footer-links a { color: rgba(250, 246, 239, .7); }
.footer-links a:hover { color: var(--gold-light); }
.footer small { display: block; margin-top: 1rem; color: rgba(250, 246, 239, .4); }

/* ─── Phones ─────────────────────────────────────────────
   iOS zooms into any field under 16px on focus and never zooms back: every
   input is 16px on small screens. Long words (URLs, hashtags in captions)
   break rather than push the page sideways; a table in a page scrolls inside
   itself. */
.prose, .tile h3, .tile p, .post-text h1, .article-head h1 { overflow-wrap: anywhere; }
.navbar { padding-left: max(1.5rem, env(safe-area-inset-left, 0px)); padding-right: max(1.5rem, env(safe-area-inset-right, 0px)); }
.pager { flex-wrap: wrap; }
@media (max-width: 900px) {
  .nav-links { max-height: calc(100vh - 68px - env(safe-area-inset-top, 0px)); overflow-y: auto; }
}
@media (max-width: 640px) {
  input, textarea, select, .field, .search input,
  .comment-form input[type=text], .comment-form input[type=email], .comment-form textarea,
  .lettre-form .form-row input, .card-form input { font-size: 16px; }
  body { font-size: 1.03rem; }
  .navbar { height: 60px; padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
  .nav-links { top: 60px; max-height: calc(100vh - 60px - env(safe-area-inset-top, 0px)); }
  .navbar-brand { font-size: 1.25rem; }
  .navbar-brand img, .navbar-brand .monogram { width: 36px; height: 36px; }
  .section { padding: 1.6rem 1rem; }
  .reading { padding: 1.2rem 1rem .5rem; }
  .prose { font-size: 1.08rem; }
  .prose table { display: block; overflow-x: auto; }
  .tiles { gap: 1.1rem; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: 100%; text-align: left !important; }
  .comment-form { padding: 1.1rem; }
  .form-foot .btn { width: 100%; }
  .lettre { padding: 2.4rem 1rem; }
  .lettre h2 { font-size: 1.6rem; }
  .lettre-form .btn { width: 100%; }
  .page-card { padding: 1.6rem 1.1rem; }
  .buybox { padding: 1.2rem; }
  .buybox .btn { width: 100%; white-space: normal; }
  .search .btn { padding: .8rem 1rem; }
  .carousel-btn { width: 34px; height: 34px; }
}
