* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fafbf8;
  color: #1d2a34;
  font:
    16px/1.55 system-ui,
    sans-serif;
}
header,
footer,
main {
  width: min(1100px, 92%);
  margin: auto;
}
header,
footer,
nav,
.row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
header {
  min-height: 78px;
  border-bottom: 1px solid #d5dcd9;
}
header nav {
  margin: auto;
}
a {
  color: #234f84;
  text-underline-offset: 4px;
}
header a,
footer a,
.card a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  color: #1d2a34;
}
.brand b {
  color: #346295;
}
.entry,
.btn,
button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  background: #254c73;
  color: white;
  padding: 10px 17px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
main {
  min-height: 65vh;
  padding: 46px 0 60px;
}
.hero {
  background: #e7eef4;
  border-radius: 20px;
  padding: clamp(24px, 5vw, 70px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero img {
  width: 100%;
  transform: rotate(-5deg);
  border-radius: 16px;
  box-shadow: 8px 16px 0 #c8d8e5;
}
.hero p {
  max-width: 42ch;
}
.hero a {
  margin: 8px 14px 0 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(36px, 5vw, 66px);
  margin: 12px 0 20px;
}
h2 {
  font-size: 32px;
  margin: 36px 0 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
  gap: 20px;
}
.card,
article,
form,
details {
  background: white;
  border: 1px solid #d9dfdf;
  border-radius: 12px;
  padding: 18px;
}
.card img {
  width: 100%;
  border-radius: 7px;
}
.card small {
  display: block;
  color: #53626c;
  margin-top: 8px;
}
article {
  max-width: 74ch;
  white-space: pre-line;
}
form {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 12px 0;
}
input,
textarea,
select {
  font: inherit;
  border: 1px solid #a9b6c0;
  background: white;
  color: inherit;
  padding: 10px;
  border-radius: 6px;
  max-width: 100%;
}
textarea {
  min-height: 110px;
}
label {
  display: grid;
  gap: 4px;
}
button {
  width: fit-content;
}
details {
  margin: 8px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
footer {
  justify-content: space-between;
  border-top: 1px solid #d5dcd9;
  padding: 20px 0;
  color: #52616c;
}
audio,
video {
  max-width: 100%;
  width: 400px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.error {
  color: #913422;
}
:focus-visible {
  outline: 3px solid #4670ad;
  outline-offset: 3px;
}
@media (max-width: 680px) {
  header {
    gap: 12px;
    padding: 14px 0;
  }
  header nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 18px;
  }
  .entry {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero img {
    max-width: 240px;
  }
  main {
    padding-top: 24px;
  }
}
.card {
  transition: border-color 0.18s ease;
}
.card:focus-within,
.card:hover {
  border-color: #849db1;
}
.hero img {
  border: 1px solid #aebfcd;
}
.hero p {
  color: #415564;
}
.entry:hover,
.btn:hover,
button:hover {
  background: #173e63;
}
.card h3 {
  margin: 6px 0 0;
}
.card img {
  display: block;
}
output {
  overflow-wrap: anywhere;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header-actions select {
  padding: 6px;
  font-size: 0.875rem;
}
.workspace-link {
  font-size: 0.9rem;
}
.beta-notice {
  width: min(1100px, 92%);
  margin: 14px auto 0;
  background: #e7eef4;
  color: #254c73;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
}
@media (max-width: 680px) {
  .header-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .header-actions .entry {
    margin-left: 0;
    padding: 8px 12px;
  }
  .workspace-link {
    font-size: 0.8rem;
  }
}
