@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter+Tight:ital@0;1&display=swap");

* {
  box-sizing: border-box;
}

body {
  --accent-color: #515773;

  margin: 0;
  font-family: "Inter Tight";
  font-feature-settings: "calt", "case", "ss01", "cv11";
  accent-color: var(--accent-color);
  color: #434142;

  min-height: 100dvh;

  display: grid;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue", sans-serif;
  margin-top: 0;
  font-weight: 400;
}

main {
  display: inline grid;
  border: solid .125rem currentColor;
  border-radius: .5rem;
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
  place-self: center;

  background-clip: padding-box;
  background-color: currentColor;
  gap: .125rem;
}

main form {
  background-color: white;
  display: grid;
  grid-template-columns: auto min-content min-content;
  padding: 1rem;
  gap: .25rem;

  align-content: start;
}

form input[type=text],
form input[type=number] {
  grid-column: 3 / span 1;
  place-self: center start;

  text-align: right;
}

form input[type=checkbox],
form input[type=radio] {
  grid-column: 2 / span 1;
  place-self: center start;

  margin: 0;
}

form math {
  grid-column: 1 / span 1;
  place-self: center start;

  font-family: ui-serif;
}

.lens {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  grid-column: 1 / span 3;
}

.mediums {
  grid-area: 1 / 1;
  display: flex;

  align-self: center;
  justify-self: stretch;
  justify-content: space-evenly;
}

.mediums .material-doublet {
  display: flex;
  gap: 2rem;
}

svg {
  height: 10rem;
  grid-area: 1 / 1;
}

svg path {
  stroke-width: 1.25%;
}

input {
  border: none;
  appearance: textfield;
  border-radius: .25rem;
  padding: .25rem;
  font: inherit;
  color: inherit;

  background-color: transparent;
  border: solid .125rem currentColor;
}

input:focus {
  outline: solid .125rem oklch(50% 0.03 var(--hue));
}

input:disabled {
  opacity: .8;
}

input[type=radio]:focus {
  outline: transparent;
}

.row {
  display: contents;
}

h1 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-size: 1.5rem;
}