:root {
  font-family: Arial, sans-serif;
  color: #223a32;
  background: #f6f4ec;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.notice {
  text-align: center;
  background: #223a32;
  color: #f7f5ed;
  padding: 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
}
header {
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px;
  border-bottom: 1px solid #cdd2c6;
}
header > span,
footer {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.brand {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: bold;
  letter-spacing: -2px;
}
.brand span {
  font: 12px Arial;
  vertical-align: top;
  letter-spacing: 0;
  margin-left: 4px;
}
a {
  color: inherit;
}
header a {
  text-decoration: none;
}
header > a:last-child {
  font-size: 12px;
}
main {
  max-width: 1120px;
  min-height: 640px;
  margin: auto;
  padding: 54px 34px;
}
.product {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 68px;
  align-items: center;
}
.art {
  height: 440px;
  background: #e8e7db;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.art:after {
  content: "MADE FOR THE EVERYDAY";
  position: absolute;
  bottom: 22px;
  font-size: 9px;
  letter-spacing: 0.22em;
}
.notebook {
  width: 205px;
  height: 282px;
  background: #9a482f;
  transform: rotate(-11deg);
  border-radius: 3px 12px 12px 3px;
  box-shadow:
    2px 2px #bf8763,
    5px 4px #f2e2c3,
    8px 6px #995637,
    20px 26px 30px #223a3230;
  border-left: 8px solid #803c29;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #eed6a8;
}
.notebook b {
  font:
    38px Georgia,
    serif;
  line-height: 1;
}
.notebook i {
  font:
    12px Georgia,
    serif;
  margin-top: 14px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.19em;
  margin: 0 0 20px;
  color: #627163;
}
h1 {
  font:
    56px/1.05 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 0 0 20px;
}
h2 {
  font:
    30px Georgia,
    serif;
}
.description {
  font:
    17px/1.8 Georgia,
    serif;
  max-width: 340px;
  color: #657166;
}
.price {
  font-size: 21px;
  margin: 24px 0;
}
.details {
  font-size: 12px;
  line-height: 1.9;
  border-top: 1px solid #d6d9cb;
  margin: 28px 0;
  padding-top: 18px;
  color: #627163;
}
.primary {
  border: 0;
  background: #263f35;
  color: #fffaf0;
  padding: 18px 26px;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  min-width: 210px;
}
.primary:hover {
  background: #3c5b4c;
}
.primary:disabled {
  opacity: 0.5;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #c1843d;
  outline-offset: 4px;
}
footer {
  max-width: 1052px;
  border-top: 1px solid #cdd2c6;
  margin: auto;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  color: #697468;
}
.checkout {
  max-width: 820px;
  margin: auto;
}
.steps {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #788475;
  margin-bottom: 30px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  margin-top: 32px;
}
.checkout h1 {
  font-size: 44px;
}
label {
  font-size: 12px;
  display: block;
  margin-bottom: 0;
}
input {
  display: block;
  width: 100%;
  margin-top: 9px;
  margin-bottom: 22px;
  border: 1px solid #c3cbbd;
  padding: 14px;
  background: #fffcf5;
  font: 16px Arial;
  color: #223a32;
}
.summary {
  background: #ebece0;
  padding: 28px;
  height: max-content;
}
.summary p {
  font-size: 14px;
  line-height: 1.7;
}
.line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #cbd0c0;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.muted {
  color: #6d786a;
  font-size: 12px;
  line-height: 1.7;
}
.success {
  max-width: 570px;
  margin: 50px auto;
  text-align: center;
}
.seal {
  border: 1px solid #536c57;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: grid;
  place-items: center;
  font-size: 26px;
}
.success h1 {
  font-size: 50px;
}
.success p {
  font:
    17px/1.7 Georgia,
    serif;
}
.success .summary {
  margin: 30px 0;
  text-align: left;
}
#error {
  color: #a03022;
  font-size: 14px;
}
@media (max-width: 700px) {
  header {
    padding: 22px;
  }
  header > span {
    display: none;
  }
  main {
    padding: 28px 22px;
    min-height: auto;
  }
  .product,
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .art {
    height: 310px;
  }
  .notebook {
    width: 155px;
    height: 220px;
  }
  h1 {
    font-size: 46px;
  }
  footer {
    padding: 24px;
    gap: 20px;
  }
  .checkout h1 {
    font-size: 38px;
  }
}
