@font-face {
  font-family: Barlow Condensed;
  src: url("assets/Condensed.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: Barlow Condensed;
  src: url("assets/Semi.ttf") format("truetype");
  font-display: swap;
  font-weight: 600;
}

:root {
  color-scheme: dark;
  --background: #080808;
  --surface: #101010;
  --ink: #fbfaf8;
  --muted: #bdb9b6;
  --red: #ff252a;
  --line: #2f2d2d;
  --headline: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
h1, h2, h3 { margin: 0; font-family: var(--headline); font-weight: 700; }
p, figure { margin: 0; }
.shell { width: min(100% - 112px, 1280px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 2; inset: 12px auto auto 12px; background: white; color: black; padding: 10px; }

.header { border-bottom: 1px solid var(--line); }
.header-row { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { object-fit: contain; }
.brand span { padding-left: 13px; border-left: 1px solid #4b4a4a; font: 600 1.05rem/1 var(--headline); letter-spacing: .085em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); }
nav a { text-decoration: none; font-weight: 600; font-size: .94rem; }
nav a:hover { color: var(--red); }
.hero { display: grid; grid-template-columns: 1.03fr 1fr; gap: 40px; min-height: 620px; padding-block: 40px 44px; align-items: stretch; }
.hero-copy { align-self: center; padding: 26px 0 34px; }
.hero h1 { font-size: clamp(4.9rem, 9.35vw, 9.05rem); line-height: .83; letter-spacing: -.025em; text-transform: uppercase; }
.hero h1 span { display: block; }
h1 span, h2 span { color: var(--red); }
.hero-copy p { color: var(--muted); margin-top: 32px; max-width: 410px; font-size: 1.17rem; }
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-flex; min-height: 47px; padding: 10px 17px; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.button-primary { background: var(--red); color: #080808; }
.button-primary:hover { background: #ff6568; }
.button-outline { border-color: #5b5555; }
.button-outline:hover { border-color: var(--ink); }
.header nav { gap: 8px; }
.header nav .button {
  min-height: 44px;
  padding: 8px clamp(10px, 1.35vw, 19px);
  font: 700 1.03rem/1.15 var(--headline);
  letter-spacing: .035em;
  text-transform: uppercase;
  text-align: center;
}
.header nav .button-outline { background: var(--surface); }
.header nav .button-outline:hover {
  border-color: var(--red);
  color: var(--ink);
}
.header nav .button-primary:hover { color: var(--background); }

.hero-photo { position: relative; background: #222; overflow: hidden; min-height: 510px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(0 0 0 / .58), transparent 54%); border-bottom: 4px solid var(--red); }

.section { padding-block: 43px 61px; border-top: 1px solid var(--line); }
.section h2, .archive-title { font-size: clamp(2.85rem, 5.75vw, 5.1rem); line-height: .96; text-transform: uppercase; letter-spacing: -.015em; }
.practice { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 29px; }
.practice article { border: 1px solid var(--line); background: var(--surface); padding: 25px 29px 28px; }
.practice h3 { font-size: clamp(2rem, 3.15vw, 3rem); line-height: 1; }
.practice p { margin-top: 16px; color: var(--muted); max-width: 43ch; }
.practice ul { margin: 18px 0 0; padding-left: 18px; }
.practice li { padding-left: 4px; margin-top: 6px; }
.practice li::marker { color: var(--red); }
.articles { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 29px; }
.story { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.story img { width: 100%; height: auto; aspect-ratio: 750 / 440; object-fit: cover; border-bottom: 2px solid var(--red); }
.story-body { display: flex; flex: 1; flex-direction: column; align-items: start; gap: 11px; padding: 21px 22px 23px; }
.topic { color: #ff7073; font-weight: 700; font-size: .87rem; }
.story h3 { font-size: clamp(1.8rem, 2.9vw, 2.65rem); line-height: 1.03; }
.story-body p:not(.topic) { color: var(--muted); }
.read { margin-top: auto; padding: 8px 0 3px; border: 0; border-bottom: 1px solid var(--red); background: transparent; font-weight: 650; }
.read:hover { color: #ff7073; }
.contact { background: #141010; border-left: 4px solid var(--red); padding: 32px clamp(20px, 4.5vw, 62px); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.contact-body { color: var(--muted); }
.contact-body .button, .profile { margin-top: 12px; }
.footer { padding-block: 25px 38px; border-top: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
dialog { width: min(100% - 36px, 680px); max-height: 85dvh; background: #141414; color: var(--ink); border: 1px solid #5b5555; padding: 26px; }
dialog::backdrop { background: rgb(0 0 0 / .83); }
dialog form { display: flex; justify-content: end; }
.close { border: 1px solid #5b5555; background: transparent; padding: 5px 12px; }
dialog h2 { font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1.02; margin-block: 14px; }
dialog p { margin-top: 14px; color: var(--muted); }
dialog a { color: var(--ink); }
@media (max-width: 950px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 26px; min-height: auto; }
  .hero-photo { min-height: 410px; }
  .hero h1 { font-size: clamp(4rem, 10vw, 6.25rem); }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .header-row { min-height: 70px; gap: 12px; }
  .brand { gap: 7px; }
  .brand img { width: 38px; height: 37px; }
  .brand span { padding-left: 7px; font-size: .87rem; letter-spacing: .045em; }
  nav { gap: 13px; }
  nav a { font-size: .85rem; }
  .hero { grid-template-columns: 1fr; gap: 23px; padding-block: 28px 30px; }
  .hero-copy { padding: 8px 0 0; }
  .hero h1 { font-size: clamp(4.1rem, 14.8vw, 7rem); }
  .hero-copy p { margin-top: 21px; font-size: 1.04rem; }
  .hero-links { margin-top: 19px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.65; }
  .hero-photo img { object-position: center 26%; }
  .section { padding-block: 29px 38px; }
  .section h2, .archive-title { font-size: clamp(2.65rem, 9vw, 4.2rem); }
  .practice, .articles { grid-template-columns: 1fr; gap: 15px; margin-top: 22px; }
  .practice article { padding: 22px; }
  .contact, .footer { flex-wrap: wrap; }
}
@media (max-width: 370px) {
  .header-row { flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.header .brand { gap: 16px; }
.header .brand img { width: 55px; height: 54px; }
.header .brand .brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 16px;
  text-transform: uppercase;
}
.header .brand-lockup span {
  padding: 0;
  border: 0;
}
.header .brand-lockup .brand-name {
  font: 700 clamp(1.65rem, 3vw, 2.3rem)/1 var(--headline);
  letter-spacing: .025em;
}
.header .brand-lockup .brand-description {
  font: 400 .72rem/1.18 var(--body);
  letter-spacing: .035em;
}
.practice li + li { margin-top: 11px; }
.practice li strong { color: var(--ink); }
.articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story img { aspect-ratio: 2 / 1; }
#quem-sou {
  width: auto;
  margin-inline: max(56px, calc((100% - 1280px) / 2)) 0;
}
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); align-items: center; gap: 32px; }
.about-copy p { color: var(--muted); font-size: 1.1rem; margin-top: 20px; max-width: 49ch; }
.about-bio { white-space: pre-line; }
.about-photo {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: clamp(335px, 42vw, 500px);
  overflow: hidden;
  color: var(--muted);
}
.about-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 78% 62%, #421213 0, #1b0a0a 38%, transparent 72%);
}
.about-photo > .portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  mask-image: linear-gradient(to bottom, #000 0 94%, transparent 100%);
}
.about-photo figcaption { font-size: .94rem; }
@media (max-width: 950px) {
  #quem-sou { margin-inline-start: 32px; }
}
@media (max-width: 780px) {
  .header-row { flex-wrap: wrap; padding-block: 13px; row-gap: 11px; }
  .header-row nav { flex-wrap: wrap; row-gap: 7px; }
  .header .brand img { width: 43px; height: 42px; }
  .header .brand, .header .brand .brand-lockup { gap: 7px; }
  .header .brand .brand-lockup { padding-left: 10px; }
  .header .brand-lockup .brand-description { font-size: .68rem; }
}
@media (max-width: 520px) {
  .header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}
@media (max-width: 700px) {
  .articles, .about { grid-template-columns: 1fr; }
  #quem-sou { margin-inline-start: 18px; }
  .about { gap: 20px; }
  .about-copy { padding-inline-end: 18px; }
  .about-photo { min-height: clamp(320px, 95vw, 465px); }
}

.about-copy .about-registration {
  color: var(--ink);
  font-weight: 650;
  margin-top: 16px;
}
.about-copy h3 { font-size: 1.8rem; margin-top: clamp(36px, 4vw, 48px); }
.education { margin: 7px 0 0; padding-left: 19px; color: var(--muted); }
.education li + li { margin-top: 5px; }
.education li::marker { color: var(--red); }
.story:not(:has(img)) { border-top: 2px solid var(--red); }

.practice-wide { grid-column: 1 / -1; }
.practice-wide p { max-width: 68ch; }
.practice-wide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 38px;
}
.practice-wide li + li { margin-top: 6px; }
.contact-body > .button { margin-top: 0; }
@media (max-width: 700px) {
  .practice-wide ul { grid-template-columns: 1fr; gap: 4px; }
}

.contact-details {
  display: grid;
  gap: 12px;
  margin: 0;
}
.contact-details dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .9rem;
}
.contact-icon { flex: none; }
.button .contact-icon { margin-inline-end: 7px; }
.contact-details dd { margin: 1px 0 0; overflow-wrap: anywhere; }
.contact-details a { color: var(--ink); text-underline-offset: 3px; }
.contact-details + .button { margin-top: 17px; }

.hero-copy .hero-registration {
  margin-top: 15px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 650;
}
.contact-intro p { color: var(--muted); margin-top: 14px; max-width: 54ch; }
.contact-body { flex: 0 1 290px; min-width: 0; }
.mobile-contact { display: none; }
@media (max-width: 700px) {
  .mobile-contact {
    display: block;
    position: fixed;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 9px 18px calc(9px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--background);
  }
  .mobile-contact .button { display: flex; width: 100%; }
}

.archive-title { margin: 0; }
.articles-actions { margin-top: 23px; }
.archive-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--muted);
}
.archive-pagination a { color: var(--ink); }
