:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #182523;
  background: #fbfcfa;
  --teal: #075c60;
  --muted: #465d58;
  --border: #cbdad5;
}

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

body { margin: 0; }

.layout {
  width: min(calc(100% - 2 * clamp(1rem, 4.2vw, 4.5rem)), 86rem);
  margin-inline: auto;
}

.masthead {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.masthead img { flex: none; }

.masthead p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .8rem;
  margin: 0;
  line-height: 1.4;
}

.masthead strong { font-size: .95rem; }
.masthead p span { color: var(--muted); font-size: .86rem; }

.portfolio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 4.4vw, 4.5rem);
  padding-block: clamp(3rem, 9vh, 7rem);
}

h1 {
  margin: 0 0 1.45rem;
  font-size: clamp(1.9rem, 3.45vw, 3.55rem);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.02;
}

h1 span { display: block; }

.subtitle {
  max-width: 29rem;
  margin: 0 0 .65rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.43;
}

.description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  display: grid;
  max-width: 25rem;
  gap: .7rem;
  margin-top: 2rem;
}

.action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  min-height: 4.1rem;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: .2rem;
  text-decoration: none;
  line-height: 1.35;
}

.action svg { flex: none; }
.action strong, .action small { display: block; }
.action small { margin-top: .15rem; font-size: .79rem; }

.action-primary { background: var(--teal); color: #fff; }
.action-primary small { color: #e3f1ee; }
.action-primary:hover { background: #064a4d; }
.action-download { border-color: #9bb8b0; color: #154c49; }
.action-download:hover { background: #edf5f1; }

a:focus-visible { outline: 2px solid #076567; outline-offset: 4px; }

.compact {
  justify-self: start;
  margin-top: .25rem;
  padding-block: .35rem;
  color: var(--teal);
  font-size: .85rem;
  line-height: 1.5;
  text-underline-offset: .2em;
}

.compact span { color: var(--muted); }

.preview {
  min-width: 0;
  margin: 0;
  padding: clamp(.8rem, 1.65vw, 1.6rem);
  border: 1px solid #d6e3dd;
  background: #edf3ef;
}

.preview figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem .8rem;
  margin-bottom: .8rem;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .06em;
  line-height: 1.4;
}

.preview figcaption span:first-child {
  font-weight: 700;
  text-transform: uppercase;
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dae4df;
  background: #fff;
  box-shadow: 0 6px 22px #183a3011;
}

@media (max-width: 50rem) {
  .layout { max-width: 40rem; }
  .masthead { min-height: 4.25rem; gap: .75rem; }
  .portfolio { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; padding-block: 2.5rem; }
  h1 { font-size: clamp(1.6rem, 7.8vw, 3.45rem); margin-bottom: 1rem; }
  .actions { margin-top: 1.45rem; }
}
