/* gazzini.com — Swiss / International Typographic Style.
   Monochrome, no JS, no theming: black on white, grotesque type, hard edges,
   strong hierarchy, flush-left, small uppercase labels for metadata. */

:root {
  --fg: #111;
  --bg: #fff;
  --muted: #767676;
  --line: #ddd;
  --code-bg: #f2f2f2;
  --maxw: 660px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.site-header,
main {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* masthead */
.site-header { padding-block: 28px 10px; }
.site-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.site-title:hover { text-decoration: underline; }

main { padding-block: 24px 96px; }
article > :first-child { margin-top: 0; }

/* typography — contrast through size & weight, not decoration */
h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0.2em 0 0.7em;
}
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 2em 0 0.4em;
}
/* h3 → small uppercase kicker / label */
h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin: 2.2em 0 0.8em;
}

p, ul, ol { margin: 0.9em 0; }
li { margin: 0.25em 0; }
strong { font-weight: 700; }

/* prose links: underlined (the only signal in monochrome) */
a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--muted); }

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.4em 0;
}

blockquote {
  margin: 1.4em 0;
  padding-left: 1.1em;
  border-left: 2px solid var(--fg);
  color: var(--muted);
}

hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  font-size: 0.88em;
}
pre {
  background: var(--code-bg);
  padding: 16px 18px;
  overflow-x: auto;
}
pre code { background: none; padding: 0; font-size: 0.85em; }

table { border-collapse: collapse; width: 100%; margin: 1.4em 0; }
th, td { border: 1px solid var(--line); padding: 7px 11px; text-align: left; }
th { font-weight: 700; }

/* metadata: tags as small uppercase labels, no pills */
.tag-chip {
  display: inline-block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.9em 0 0;
}
.tag-chip::before { content: "#"; opacity: 0.55; }
.tag-chip:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; }
.tag-chip:hover::before { opacity: 1; }
.tag-count { font-variant-numeric: tabular-nums; }

.tags { display: inline; margin: 0 0 0 0.4em; }   /* chips after a post title */

/* post footer: date byline + tags on one line at the bottom (writing) */
.post-meta { margin-top: 3em; }
.post-byline {
  display: inline;
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.post-meta .tags { display: inline; margin-left: 1.4em; }
.tag-cloud { margin: 0.4em 0; }

/* flush-left post lists with a tabular date gutter */
.post-list { list-style: none; padding: 0; margin: 0.4em 0; }
.post-list li { display: flex; align-items: baseline; gap: 1.1em; margin: 0.3em 0; padding: 0; }
.post-list a { text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list .post-date {
  flex: none;
  width: 3.2ch;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.post-list .tags { margin: 0; }

/* homepage timeline */
.home-section { margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.home-section > h3 {               /* year divider */
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 0.2em;
}
.tl-label {                        /* "New projects" / "Updates" */
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 1.3em 0 0.4em;
}
.update-list { list-style: none; padding: 0; margin: 0.2em 0; }
.update-list li { margin: 0.18em 0; }
.update-list a { text-decoration: none; color: var(--muted); }
.update-list a:hover { color: var(--fg); }
.u-name { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.u-title { font-size: 0.7rem; }
.u-title::before { content: "("; }
.u-title::after { content: ")"; }
.tl-just { margin: 0.5em 0 0; font-size: 0.82rem; }
.tl-just a { color: var(--muted); opacity: 0.7; text-decoration: none; }
.tl-just a:hover { opacity: 1; text-decoration: underline; }

/* admonitions (note / tip / info / warning / …) — monochrome, weight not color */
.admonition {
  margin: 1.6em 0;
  padding: 0.7em 1.1em;
  border: 1px solid var(--line);
  border-left: 3px solid var(--fg);
}
.admonition-title {
  margin: 0 0 0.3em;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.admonition > :last-child { margin-bottom: 0; }
.admonition p { margin: 0.3em 0; }

/* parent/child (project ↔ sub-post) */
.parent-link { margin: -0.3em 0 1.6em; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.parent-link a { color: var(--muted); }
.parent-link a:hover { color: var(--fg); }
.project-children { margin-top: 3em; border-top: 1px solid var(--fg); padding-top: 0.4em; }
