/* solanomorales.com, design "A · modern" (design/preview/index.html, chosen 2026-10-24). No inline styles: the CSP allows only this file. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f3ee;
  --card: #fffdf9;
  --text: #1d1b19;
  --text-2: #6b655e;
  --line: #ddd6cc;
  --chip: #ebe6de;
  /* orange of the self-built workbenches */
  --accent: #d4521f;
  --accent-text: #b8431a;
  --portrait-bg: #e9e2d7;
  --focus: #3550c8;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --radius: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151413;
    --card: #1d1b19;
    --text: #f1ece4;
    --text-2: #a39b90;
    --line: #33302c;
    --chip: #262422;
    --accent: #f07a4a;
    --accent-text: #f59a72;
    --portrait-bg: #e9e2d7;
    --focus: #93a6ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  display: flex;
  justify-content: flex-end;
  padding: 24px clamp(16px, 4vw, 48px);
}

.language-switch ul {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--chip);
}

.language-switch a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.language-switch a:hover {
  color: var(--text);
}

.language-switch a[aria-current="page"] {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

/* Layout and type */

main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

h1 em,
h2 em {
  color: var(--accent);
}

h1 {
  font-size: clamp(2.875rem, 7vw, 5.75rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Same size in every language, small enough that each headline fits on two lines on wide screens */
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
}

h2 {
  margin-bottom: 40px;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.kicker {
  margin-bottom: 20px;
  color: var(--accent-text);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 46ch;
  color: var(--text-2);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.5;
}

p {
  max-width: 64ch;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  opacity: 0.85;
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: end;
  padding: 48px 0 96px;
}

.hero .lead {
  margin-top: 28px;
}

.portrait {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  border-radius: 190px 190px 16px 16px;
  background: var(--portrait-bg);
}

.portrait-initials {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: #1d1b19;
  font-size: 4rem;
  font-weight: 800;
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.principle-index,
.app-index {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
}

.principle-index {
  font-size: 1.25rem;
}

/* Apps */

.app {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 8px 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.app:first-child {
  padding-top: 0;
  border-top: 0;
}

.app-index {
  font-size: 2.5rem;
  line-height: 1;
}

.app-meta {
  color: var(--text-2);
  font-size: 0.875rem;
}

.badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.app-link:hover {
  text-decoration: underline;
}

.app-link .icon {
  width: 16px;
  height: 16px;
}

.app-media {
  grid-column: 2 / -1;
  margin-top: 24px;
}

.loops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.loop img {
  width: 100%;
  border-radius: var(--radius);
  background: #23303a;
}

.loop figcaption {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.875rem;
}

.archive {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 24px 0 0 112px;
  border-top: 1px solid var(--line);
}

.archive-icon {
  flex: none;
  width: 48px;
  height: 48px;
}

.archive h3 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.archive-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.year {
  color: var(--text-2);
  font-size: 1rem;
}

.archive p {
  color: var(--text-2);
  font-size: 1rem;
}

/* Story */

.story {
  columns: 2;
  column-gap: 64px;
}

.story p {
  margin-bottom: 18px;
  break-inside: avoid;
}

.story p:first-child::first-letter {
  float: left;
  padding: 8px 10px 0 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 4.875rem;
  line-height: 0.8;
}

/* Workshop */

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.6fr;
  grid-template-rows: auto auto auto;
  gap: 12px;
  margin-top: 40px;
}

.gallery img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: 1 / -1;
}

.gallery-wide img {
  aspect-ratio: 21 / 9;
}

.note {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Languages */

.section-languages .kicker {
  margin-bottom: 24px;
}

.languages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.language-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.875rem;
  line-height: 1.2;
}

.language-origin {
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Contact */

.contact {
  padding-bottom: 120px;
}

.signature {
  margin-top: 24px;
  color: var(--accent-text);
  font-family: "Caveat", cursive;
  font-size: 2.75rem;
  line-height: 1;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.875rem;
}

.site-footer a {
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Privacy */

.legal article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.legal h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.legal h2 {
  margin: 16px 0 0;
  font-size: 1.375rem;
}

.legal p {
  color: var(--text-2);
}

.legal .legal-updated {
  margin-top: 16px;
  font-size: 0.875rem;
}

/* Responsive */

@media (max-width: 820px) {
  body {
    font-size: 1.0625rem;
  }

  main,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    padding: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 0 64px;
  }

  .portrait {
    order: -1;
    justify-self: start;
    max-width: 240px;
    border-radius: 120px 120px 12px 12px;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .app {
    grid-template-columns: 44px 1fr;
    gap: 4px 16px;
  }

  .app-index {
    font-size: 1.75rem;
  }

  .app-meta,
  .app-media {
    grid-column: 2;
  }

  .app-media {
    grid-column: 1 / -1;
  }

  .loops {
    grid-template-columns: 1fr 1fr;
  }

  .loops .loop:last-child {
    grid-column: 1 / -1;
  }

  .archive {
    padding-left: 0;
  }

  .story {
    columns: 1;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-tall {
    grid-row: auto;
  }

  .gallery-wide img {
    aspect-ratio: 16 / 9;
  }

  .languages {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .language-switch a {
    transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
}
