@import url("fonts.css");

:root {
  color-scheme: light;
  --paper: #fffefa;
  --ink: #13273a;
  --blue: #154773;
  --muted: #4d5e69;
  --line: #c9cdd0;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "DM Serif Text", Georgia, serif;
}
* {box-sizing: border-box;}
body {margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans);}
header {
  padding-inline: max(18px, calc((100% - 44rem) / 2));
  border-top: 5px solid var(--blue); border-bottom: 1px solid var(--line);
}
header a {
  display: inline-flex; align-items: center; min-height: 68px; color: var(--ink);
  font: 400 clamp(2rem, 4vw, 2.7rem)/1 "Archivo Black", var(--sans);
  letter-spacing: -.075em; text-decoration: none;
}
main {width: min(calc(100% - 36px), 44rem); margin: clamp(16px, 3vw, 34px) auto 56px;}
a {color: var(--blue); text-underline-offset: .18em;}
main > a:first-child {display: inline-flex; align-items: center; min-height: 44px; font-weight: 600;}
h1, h2 {font-family: var(--serif); font-weight: 400; text-wrap: pretty; overflow-wrap: anywhere;}
h1 {margin: .2em 0 .15em; font-size: clamp(2.55rem, 5vw, 3.7rem); letter-spacing: -.045em; line-height: 1.04;}
h2 {margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.025em; line-height: 1.17;}
main > h2 {max-width: 39ch; margin-bottom: 1.1em;}
article {padding-block: 15px; border-top: 1px solid var(--line);}
article time {margin-inline-start: .4em; color: var(--muted); font-size: .875rem;}
article p {margin: 5px 0 0; overflow-wrap: anywhere;}
form {padding-top: 21px; border-top: 1px solid var(--line);}
form > p {max-width: 55ch; margin: 8px 0 20px; color: var(--muted);}
label {display: block; margin: 15px 0; font-weight: 600;}
[hidden] {display: none;}
input, textarea {
  display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 10px 12px;
  border: 1px solid #899ba7; border-radius: 7px; background: white; color: var(--ink); font: 400 1rem/1.5 var(--sans);
}
textarea {resize: vertical;}
button {
  min-height: 44px; padding: 10px 17px; border: 0; border-radius: 7px;
  background: var(--blue); color: white; cursor: pointer; font: 700 1rem/1.4 var(--sans);
}
button:hover {background: #10344f;}
[role="status"], form [role="alert"] {padding: 11px 14px; border-inline-start: 3px solid; overflow-wrap: anywhere;}
[role="status"] {color: #20583b; background: #edf5ee;}
form [role="alert"] {color: #813724; background: #fbf0e9;}
:focus-visible {outline: 3px solid #187998; outline-offset: 3px;}
