@layer reset, components, theme, overrides;
/**
 * Clean Portfolio theme.
 * Make sure to have a mobile-first approach in your styles.
 */
@layer theme {
  @scope (.theme-clean-portfolio) {
    :scope {
      --bg: #fff;
      --panel: #f5f5f3;
      --panel-hover: #ececea;
      --text: #111;
      --text-inverse: #fff;
      --muted:#666;
      --accent:#111;
      --line:#cfcfcb;
      --border-radius:0;
      --font-family:Arial,Helvetica,sans-serif;
      margin:0;
      background:var(--bg);
      color:var(--text);
      font-family:var(--font-family);
    }

    a { color: var(--accent); }

    .site-header { min-height: 96px; padding: 28px clamp(24px, 5vw, 80px); display: flex; align-items: flex-end; flex-direction: column; justify-content: space-between; gap: 32px; }
    .brand { font: 700 clamp(18px, 2vw, 30px)/1 Arial, sans-serif; letter-spacing: -.04em; }

    .site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
    .site-header nav a, .site-footer nav a { text-decoration: none; }
    .site-header nav a:hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

    .hero { position: relative; min-height: min(78vh, 900px); background: #111; color: #fff; overflow: hidden; }
    .hero > img { width: 100%; height: min(78vh, 900px); display: block; object-fit: cover; opacity: .72; }
    .hero-copy { position: absolute; inset: auto clamp(24px, 7vw, 110px) clamp(40px, 8vw, 120px); }
    .hero-copy > p:first-child, .index > header > p { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; }

    h1, h2, p { margin-top: 0; }
    .hero h1 { margin-bottom: 20px; font-size: clamp(40px, 15vw, 80px); line-height: .85; letter-spacing: -.07em; }
    .intro { max-width: 680px; font: 300 clamp(16px, 2vw, 24px)/1.45 Georgia, serif; white-space: pre-line; }
    .work, .index { padding: clamp(70px, 11vw, 170px) clamp(24px, 7vw, 110px); }

    .section-heading, .section-footer { margin-bottom: 60px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
    .section-heading h2, .index h1 { font-size: clamp(38px, 6vw, 92px); letter-spacing: -.06em; margin-bottom: 0; }
    .section-heading a, .section-footer a { border-bottom: 1px solid; padding-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; white-space: nowrap; }
    .section-footer { margin-bottom:0; margin-top:60px;}

    /* cards */
    .card-title { order:2; display:block; width:fit-content; font:400 clamp(20px, 1.6vw, 28px)/1.2 Georgia,serif; letter-spacing:0; text-decoration:none; margin:0; }
    .card-meta { color:var(--muted); font-size:9px; letter-spacing:.18em; text-transform:uppercase; margin:0;}

    /* post grid */
    .post-grid { gap: clamp(40px, 7vw, 50px) clamp(40px, 5vw, 50px); }
    .post-body { display:grid; gap:7px; padding:15px 0 0; width:auto; }
    .index > header { margin-bottom: 90px; }

    /* post page */
    .post header { padding: clamp(70px, 10vw, 150px) clamp(24px, 10vw, 160px); }
    .post header > a, .back-link a { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; text-decoration:none; }
    .post h1 { max-width: 1100px; margin: 10px 0 18px; font-size: clamp(54px, 10vw, 160px); line-height: .85; letter-spacing: -.07em; }
    .back-link { max-width: 760px; margin: clamp(70px, 10vw, 150px) auto; padding: 0 24px; }
    .post .description { max-width: 760px; margin: clamp(70px, 10vw, 150px) auto; padding: 0 24px; font: 300 clamp(18px, 2vw, 26px)/1.6 Georgia, serif; }

    /* other */
    .private { padding: 45px; border: 1px solid #111; }
    .private a { border-bottom: 1px solid; font-family: Arial, sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

    .pagination { margin-top: 80px; display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; text-transform: uppercase; }
    .pagination .disabled { pointer-events: none; opacity: .3; }
    .pagination a:hover { text-underline-offset: 5px; text-decoration: underline; }

    .site-footer { padding: 50px clamp(24px, 5vw, 80px) 20px; border-top: 1px solid #ddd; display: flex; align-items: flex-start; flex-direction: column; justify-content: space-between; gap: 10px; font-size: 12px; }
    .site-footer p { margin-bottom:0; }
    .site-footer .credit { margin-top:10px; }

    .purchase-control {
      width:calc(100% - 32px); max-width:760px; margin:clamp(22px,4vw,42px) auto 0; padding:18px; border:1px solid #111; background:#111;
      font:400 14px/1.5 Arial,Helvetica,sans-serif; color:#FFF;
    }
    .purchase-control-title { font:700 11px/1.3 Arial,Helvetica,sans-serif; letter-spacing:.16em; text-transform:uppercase; }
    .purchase-control-description { color:#FFF; }
    .purchase-control button { border:1px solid #fff; background:#fff; color:#111; font-size:10px; letter-spacing:.13em; text-transform:uppercase; }
    .purchase-control button:hover { background:#111; color:#fff; filter:none; }
    .purchase-control-links a { color:#FFF; }


    .static-page p, .static-page li { max-width:72ch; }

    /* desktop second */
    @media (min-width: 768px) {
      .site-header, .site-footer { align-items: center; flex-direction: row; }
      .site-header nav { gap: 24px; }
      .hero h1 { font-size: clamp(52px, 9vw, 100px); }

      .purchase-control { width:calc(100% - 48px); padding:22px 26px;  gap:10px 24px; }

      .site-footer { gap: 30px; padding: 50px clamp(24px, 5vw, 80px); }
      .site-footer .credit { margin-top:0; }
    }

  }
}
