/*
Theme Name: Notes — Appunti di Giuseppe
Theme URI: https://notes.giuseppesorce.com
Description: Tema editoriale tech, figlio di Twenty Twenty-Five.
Author: Giuseppe Sorce
Template: twentytwentyfive
Version: 1.0.4
Text Domain: notes-journal
*/

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/libre-franklin-400.woff2") format("woff2");
}

:root {
  --notes-night: #0b1018;
  --notes-panel: #151724;
  --notes-paper: #f4f3f8;
  --notes-ink: #171722;
  --notes-white: #f6f5fb;
  --notes-muted: #afb3c4;
  --notes-blue: #a797ff;
  --notes-cyan: #70dce9;
  --notes-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--notes-night);
  color: var(--notes-white);
  font-family: var(--notes-display);
  font-size: 17px;
  line-height: 1.6;
}

.wp-site-blocks { overflow: clip; }
.notes-header,
.notes-main,
.notes-footer {
  width: min(100% - 64px, 1440px);
  margin-inline: auto;
}
.notes-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.notes-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.notes-brand a {
  color: var(--notes-white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.notes-brand span {
  color: var(--notes-muted);
  font-size: 14px;
}
.notes-header .wp-block-navigation,
.notes-header .wp-block-navigation a {
  color: var(--notes-white);
  font-family: var(--notes-display);
  font-size: 14px;
  font-weight: 600;
}
.notes-header .wp-block-navigation a { text-decoration: none; }
.notes-header .wp-block-navigation a:hover { color: var(--notes-blue); }

.notes-hero {
  min-height: min(720px, 79vh);
  padding-block: clamp(88px, 13vh, 166px) 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.85fr);
  align-items: center;
  gap: 5vw;
}
.notes-hero-copy { max-width: 780px; }
.notes-hero-kicker {
  margin: 0 0 28px;
  color: var(--notes-blue);
  font-family: var(--notes-display);
  font-size: 16px;
  font-weight: 600;
}
.notes-hero-title {
  max-width: none;
  margin: 0;
  color: var(--notes-white);
  font-family: var(--notes-display);
  font-size: clamp(48px, 7.2vw, 108px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.99;
  text-wrap: balance;
}
.notes-hero-deck {
  max-width: 54ch;
  margin: 30px 0 0;
  color: var(--notes-muted);
  font-family: var(--notes-display);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
}
.notes-hero-link,
.notes-hero-link a {
  display: inline-flex;
  align-items: center;
  margin-top: 34px;
  color: var(--notes-night);
  background: linear-gradient(112deg, var(--notes-cyan), var(--notes-blue));
  font-family: var(--notes-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.notes-hero-link a { padding: 13px 18px; }
.notes-hero-link a:hover { background: linear-gradient(112deg, #a4f0f3, #c0b5ff); }
.notes-code-motif {
  justify-self: end;
  margin: 0 -0.08em 0 0;
  color: var(--notes-blue);
  background: linear-gradient(145deg, var(--notes-cyan) 10%, #8cc7f3 42%, var(--notes-blue) 78%, #c39aff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--notes-display);
  font-size: clamp(250px, 39vw, 590px);
  font-weight: 400;
  letter-spacing: -0.14em;
  line-height: 0.72;
  user-select: none;
}

.notes-latest {
  width: 100%;
  padding: clamp(76px, 10vw, 142px) max(32px, calc((100vw - 1440px) / 2));
  background: var(--notes-paper);
  color: var(--notes-ink);
}
.notes-latest-inner { width: min(100%, 1440px); margin-inline: auto; }
.notes-section-heading {
  margin: 0 0 58px;
  color: var(--notes-ink);
  font-family: var(--notes-display);
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}
.notes-entry {
  padding-block: 30px 36px;
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  column-gap: 48px;
}
.notes-entry .wp-block-post-date {
  margin: 7px 0 0;
  color: #58677b;
  font-family: var(--notes-display);
  font-size: 14px;
}
.notes-entry .wp-block-post-title,
.notes-entry .wp-block-post-title a {
  max-width: 26ch;
  margin: 0;
  color: var(--notes-ink);
  font-family: var(--notes-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-decoration: none;
}
.notes-entry .wp-block-post-title a:hover { color: #165ebd; }
.notes-entry .wp-block-post-excerpt {
  grid-column: 2;
  max-width: 58ch;
  margin-top: 12px;
  color: #4e5b6d;
  font-family: var(--notes-display);
}
.notes-no-posts {
  max-width: 54ch;
  margin: 0;
  color: #4e5b6d;
  font-size: 19px;
}

.notes-about {
  padding-block: clamp(86px, 12vw, 160px);
  background: var(--notes-panel);
  color: var(--notes-white);
}
.notes-about-inner {
  width: min(100% - 64px, 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 10vw;
  align-items: start;
}
.notes-about-label {
  margin: 8px 0 0;
  color: var(--notes-blue);
  font-family: var(--notes-display);
  font-size: 15px;
  font-weight: 600;
}
.notes-about-copy {
  max-width: 32ch;
  margin: 0;
  color: var(--notes-white);
  font-family: var(--notes-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  text-wrap: pretty;
}
.notes-about-copy a { color: var(--notes-blue); text-underline-offset: 5px; }

.notes-footer {
  padding-block: 34px 45px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--notes-muted);
  font-family: var(--notes-display);
  font-size: 14px;
}
.notes-footer a { color: var(--notes-white); }

.single-post .wp-block-post-title,
.page .wp-block-post-title {
  max-width: 15ch;
  margin-inline: auto;
  color: var(--notes-white);
  font-family: var(--notes-display);
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}
.single-post .wp-block-post-title { width: calc(100% - 64px); max-width: 900px; }
.single-post .wp-block-post-content {
  width: calc(100% - 64px);
  max-width: 900px;
  margin-inline: auto;
}
.page .wp-block-post-content { max-width: 70ch; }
.single-post .wp-block-post-content p,
.page .wp-block-post-content p { color: #d5deea; font-size: 19px; line-height: 1.75; }

@media (max-width: 760px) {
  .notes-header,
  .notes-main,
  .notes-footer,
  .notes-about-inner { width: min(100% - 36px, 1440px); }
  .notes-header { min-height: 74px; gap: 16px; }
  .notes-brand { gap: 8px; }
  .notes-brand a { font-size: 18px; }
  .notes-brand span { font-size: 12px; }
  .notes-header .wp-block-navigation,
  .notes-header .wp-block-navigation a { font-size: 12px; }
  .notes-hero {
    min-height: 0;
    padding-block: 82px 82px;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 8px;
  }
  .notes-hero-copy { grid-column: 1 / -1; }
  .notes-hero-kicker { margin-bottom: 22px; font-size: 14px; }
  .notes-hero-title { max-width: none; font-size: clamp(38px, 8.5vw, 62px); }
  .notes-hero-deck { max-width: 42ch; margin-top: 24px; font-size: 18px; }
  .notes-code-motif {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: -15px;
    font-size: 112px;
  }
  .notes-hero-link { grid-column: 1; grid-row: 2; margin-top: 26px; }
  .notes-latest { padding: 72px 18px; }
  .notes-section-heading { margin-bottom: 34px; }
  .notes-entry { padding-block: 24px 28px; grid-template-columns: 1fr; row-gap: 9px; }
  .notes-entry .wp-block-post-date { margin: 0; }
  .notes-entry .wp-block-post-excerpt { grid-column: 1; }
  .notes-about-inner { grid-template-columns: 1fr; gap: 26px; }
  .notes-about-copy { max-width: 24ch; }
  .notes-footer { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
