/* Juan Moniz — personal site
   Colors taken from the Nauty 360 logo. No frameworks. */

:root {
  --navy: #002e6d;
  --navy-deep: #001b45;
  --navy-soft: #153a73;
  --ink: #1c2330;
  --muted: #5a6472;
  --line: #e4e8ee;
  --paper: #ffffff;
  --fog: #f4f6f9;
  --focus: #1a56b0;
  --max: 38rem;
  --page: 72rem;
  --space: 1.25rem;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: 160ms ease;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--navy);
  color: #fff;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-soft);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.5rem 0.85rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
  transform: translateY(-200%);
}

.skip:focus,
.skip:focus-visible {
  transform: none;
  color: #fff;
  outline-color: #fff;
}

/* Top brand bar */
.bar {
  height: 3px;
  background: var(--navy);
}

.wrap {
  width: min(calc(100% - 2.5rem), 40rem);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(calc(100% - 4rem), 40rem);
  }
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2.5rem), var(--page));
  margin: 0 auto;
  padding: 1.15rem 0 0;
}

@media (min-width: 720px) {
  .site-header {
    width: min(calc(100% - 4rem), var(--page));
    padding-top: 1.5rem;
  }
}

.wordmark {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--navy-deep);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.15rem;
}

.lang a:hover {
  color: var(--navy);
}

.lang a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -1.5px 0 var(--navy);
}

.lang .sep {
  color: var(--line);
  font-weight: 400;
  user-select: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3.25rem 0 3.5rem;
}

@media (min-width: 720px) {
  .hero {
    padding: 4.75rem 0 5rem;
  }
}

.logo {
  width: 8.25rem;
  height: 8.25rem;
  margin: 0 auto 1.85rem;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 30, 70, 0.18), 0 0 0 1px rgba(0, 46, 109, 0.08);
}

@media (min-width: 720px) {
  .logo {
    width: 11rem;
    height: 11rem;
    border-radius: 1.6rem;
    margin-bottom: 2.15rem;
  }
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 7vw, 3.65rem);
  font-weight: 650;
  letter-spacing: -0.038em;
  line-height: 1.05;
  text-wrap: balance;
}

.role {
  margin: 0.7rem 0 0;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 450;
}

.place svg {
  flex: none;
  color: var(--navy);
  opacity: 0.75;
}

/* Sections */
.section {
  padding: 0 0 3.25rem;
}

@media (min-width: 720px) {
  .section {
    padding-bottom: 3.75rem;
  }
}

.section-band {
  background: var(--fog);
  padding: 3.25rem 0;
  margin-bottom: 3.25rem;
}

@media (min-width: 720px) {
  .section-band {
    padding: 3.75rem 0;
    margin-bottom: 3.75rem;
  }
}

.section-band .section {
  padding-bottom: 0;
}

.kicker {
  margin: 0 0 1.15rem;
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.prose p {
  margin: 0 0 1.15rem;
  text-wrap: pretty;
}

.prose p:last-child {
  margin-bottom: 0;
}

.signoff {
  margin-top: 1.5rem !important;
  color: var(--navy);
  font-weight: 550;
  letter-spacing: -0.01em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 0.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: background var(--ease), transform var(--ease);
}

.button:hover {
  background: var(--navy-deep);
  color: #fff;
}

.button:active {
  transform: translateY(1px);
}

.button svg {
  width: 0.95em;
  height: 0.95em;
}

/* Elsewhere / links */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.links a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 1rem 0.15rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.links a:hover {
  color: var(--navy);
}

.links .name {
  font-weight: 550;
  letter-spacing: -0.01em;
}

.links .hint {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
}

.links .arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform var(--ease), color var(--ease);
}

.links a:hover .arrow {
  color: var(--navy);
  transform: translateX(3px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 3rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--navy);
}

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

  .button,
  .links .arrow {
    transition: none;
  }

  .button:active {
    transform: none;
  }

  .links a:hover .arrow {
    transform: none;
  }
}

@media print {
  .bar,
  .site-header,
  .button,
  .skip {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  .hero {
    padding-top: 0;
  }

  .section-band {
    background: none;
  }
}
