@layer reset, components, theme, overrides;
/* Soft Journal theme. */
@layer theme {
  @scope (.theme-soft-journal) {
    :scope {
      --bg:#fbf4f1;
      --panel:#fffaf8;
      --panel-hover:#f5e7e4;
      --text:#4a353b;
      --muted:#92757d;
      --accent:#a84f69;
      --line:#dfc7ce;
      --border-radius:18px;
      --font-family:Georgia,'Times New Roman',serif;
      margin:0;
      background:var(--bg);
      color:var(--text);
      font-family:var(--font-family);
    }

    button, input, textarea, select { font-family: Arial, Helvetica, sans-serif; }
    a { color: inherit; }
    h1, h2, p { margin-top: 0; }

    /* header */
    .site-header {
      padding: 24px clamp(20px, 5vw, 70px); display: flex; justify-content: space-between; align-items: center;
      gap: 28px; background: rgba(255,250,248,.92); flex-direction:column;
    }
    .brand { font-size: 27px; font-style: italic; text-decoration: none; }
    .site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font: 12px/1.4 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
    .site-header nav a, .site-footer nav a { text-decoration: none; }

    /* home*/
    .hero { min-height: 72vh; display: grid; align-items: stretch; background: #fffaf8; }
    .hero-copy { padding: clamp(60px, 10vw, 150px) clamp(28px, 7vw, 100px); align-self: center; }
    .kicker, .latest > header p, .index > header > p, .post > header > p, .unlock > p:first-child { color: #b55f77; font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }

    .hero h1 { margin-bottom: 25px; font-size: clamp(56px, 8vw, 120px); line-height: .85; font-weight: 400; letter-spacing: -.05em; }
    .hero-copy > p:not(.kicker) { max-width: 520px; font-size: clamp(18px, 2vw, 25px); line-height: 1.6; white-space: pre-line; }
    .hero > img { width: 100%; height: 100%; min-height: 72vh; object-fit: cover; }

    .button { display: inline-block; padding: 15px 24px; border: 1px solid #9b5368; border-radius: 999px; color: #FFF; font: 700 11px/1 Arial, sans-serif; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

    .more, .unlock { margin: 30px; padding: clamp(65px, 10vw, 130px) 24px; border-radius: 28px; background: #ead4da; text-align: center; }
    .more h2, .unlock h2 { margin-bottom: 25px; font-size: clamp(46px, 8vw, 100px); font-weight: 400; letter-spacing: -.05em; }
    .more nav { margin-top: 35px; display: flex; justify-content: center; gap: 20px; font: 11px Arial, sans-serif; text-transform: uppercase; }

    /* grids */
    .latest, .index { max-width: 1320px; margin: auto; padding: clamp(75px, 10vw, 140px) clamp(20px, 5vw, 70px); }
    .latest > header, .index > header { max-width: 760px; margin: 0 auto 70px; text-align: center; }
    .latest > header h2, .index h1 { font-size: clamp(42px, 6vw, 80px); font-weight: 400; letter-spacing: -.04em; }
    .post-grid { display: grid;  gap: clamp(35px, 6vw, 90px); }

    /* cards */
    .card { background: #fffaf8; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(90,55,65,.08); }
    .card .card-art { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 0; }
    .card .card-art img { border-radius:0;}
    .card .card-title { order:2; font-size: clamp(28px, 4vw, 48px); font-weight: 400; margin-top:0; line-height: clamp(20px, 4.2vw, 52px); }
    .card .card-meta { color: #a06778; letter-spacing: .14em; text-transform: uppercase; font: 10px Arial, sans-serif; margin-bottom: 1rem; }
    .card .post-date::after { display:none; }
    .card .card-text { color: #836b72; line-height: 1.55; font-size: 1rem; }
    .card.post-card { border-radius: 180px 180px 18px 18px; }
    .post-grid-xl .card { border-radius: 18px; }
    .post-previews { background: #4a353b; }

    /* post page */
    .post header { max-width: 930px; margin: auto; padding: clamp(80px, 12vw, 170px) 24px 70px; text-align: center; }
    .post h1 { margin-bottom: 30px; font-size: clamp(52px, 9vw, 120px); line-height: .9; font-weight: 400; letter-spacing: -.055em; }
    .post header > div { max-width: 650px; margin: auto; color: #765e65; font-size: 19px; line-height: 1.65; }

    .preview { max-width: 1050px; margin: auto; padding: 0 24px; }
    .preview figure { position: relative; margin: 0 0 clamp(30px, 7vw, 90px); }
    .preview img { width: 100%; height: auto; display: block; border-radius: 16px; }
    .preview figcaption { position: absolute; right: 15px; bottom: 15px; padding: 8px 12px; border-radius: 999px; background: rgba(255,250,248,.85); font: 10px Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }

    /* other */
    .follow { padding: 50px 24px 90px; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; font: 11px Arial, sans-serif; text-transform: uppercase; }
    .follow span { color: #a06778; }

    .pagination { margin-top: 70px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; font: 11px Arial, sans-serif; text-transform: uppercase; }
    .pagination .disabled { opacity: .35; pointer-events: none; }

    .site-footer { padding: 65px clamp(20px, 5vw, 70px); display: grid; grid-template-columns: 1fr; gap: 35px; background: #4a353b; color: #fff8f5; }
    .site-footer p { max-width: 460px; margin: 12px 0 0; color: #d9c5ca; white-space: pre-line; }
    .site-footer .sub-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-direction: column; gap: 18px; }
    .site-footer small, .site-footer .credit { font-size:.85em; color: #83799d; }

    @media (min-width: 768px) {
      .site-header { flex-direction: row; }
      .hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
      .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .post-grid-xl { max-width: 930px; margin: auto; grid-template-columns: 1fr; }
      /*
      .static-page { display:grid; grid-template-columns:auto 200px; gap:20px; }
      main[data-page-key="contact"] { display: block;}
      .post-grid-sm { grid-template-columns:repeat(1,1fr); }
      */
      .site-footer { grid-template-columns: 1fr auto; }
      .site-footer .sub-footer { flex-direction: row; gap: 38px; }
    }
  }
}
