/* robertoluttino.it — personal identity, deliberately not the MindContact brand.
   Warm paper and ink, amber accent, monospace headings as a nod to the C64.
   Mobile first: base rules are the phone layout, min-width queries scale up. */

:root {
  --paper: #f6f2ea;
  --ink: #1d1b22;
  --muted: #5e5866;
  --accent: #c8541c;      /* burnt orange: links, numbers */
  --amber: #f2a541;       /* the prompt and cursor */
  --rule: #ddd4c4;
  --card: #fffdf8;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --pad: 1.25rem;
  --width: 50rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17151b;
    --ink: #ece6da;
    --muted: #a59eaa;
    --accent: #f08a4b;
    --rule: #2f2b35;
    --card: #1f1c24;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--mono); line-height: 1.15; margin: 0; }

/* Hero: a C64-style screen */
.hero { background: #1d1b22; color: #ece6da; padding: 3rem 0 2.8rem; }
/* Same box as <main>, so the hero text lines up with the sections below. */
.hero-inner { max-width: var(--width); margin: 0 auto; padding: 0 var(--pad); }
.prompt { margin-bottom: 1.2rem; font-family: var(--mono); color: var(--amber); letter-spacing: .05em; }
.prompt { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.lang { font-family: var(--sans); font-size: .9rem; letter-spacing: 0; color: var(--amber); text-decoration-color: rgba(242, 165, 65, .5); }
.lang:hover { text-decoration-color: var(--amber); }
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: 2.3rem; letter-spacing: -.01em; }
.lede { margin-top: 1rem; font-size: 1.2rem; max-width: 34rem; }
.where { margin-top: 1.2rem; font-family: var(--mono); font-size: .9rem; color: #a59eaa; }
.where strong { color: var(--amber); font-weight: 600; }

main { max-width: var(--width); margin: 0 auto; padding: 0 var(--pad); }
section { padding: 2.8rem 0 0; }
h2 { font-size: 1.4rem; margin-bottom: 1rem; }
h2 span { color: var(--accent); margin-right: .5rem; }
h3 { font-size: 1.05rem; margin-bottom: .4rem; }
p { margin: .6rem 0; }

.list, .links { list-style: none; margin: 1rem 0; padding: 0; }
.list li { display: grid; gap: .1rem; padding: .75rem 0; border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list span { color: var(--muted); }
.more { font-family: var(--mono); font-size: .95rem; }

.grid { display: grid; gap: 1rem; }
.grid article { padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; }
.grid p { margin: 0; color: var(--muted); }

.links { display: grid; gap: .6rem; }
.links a {
  display: grid;
  gap: .05rem;
  padding: .85rem 1rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.links a:hover { border-color: var(--accent); }
.links strong { font-family: var(--mono); color: var(--accent); }
.links span { color: var(--muted); font-size: .95rem; }

footer { max-width: var(--width); margin: 3rem auto 0; padding: 1.5rem var(--pad) 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
footer p:last-child { font-family: var(--mono); color: var(--accent); }

@media (min-width: 48rem) {
  :root { --pad: 2rem; }
  .hero { padding: 5rem 0 4.5rem; }
  .hero h1 { font-size: 3.6rem; }
  .lede { font-size: 1.35rem; }
  section { padding-top: 4rem; }
  h2 { font-size: 1.7rem; }
  .list li { grid-template-columns: 13rem 1fr; gap: 1rem; }
  .grid, .links { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64rem) {
  .hero h1 { font-size: 4.4rem; }
}

@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
