@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #352b25;
  background: #f8f6f1;
  font-synthesis: none;
  --muted: #82776c;
  --line: #e6e0d5;
  --brown: #4b392c;
  --green: #516c54;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
/* Prevent iOS Safari from zooming when text inputs receive focus. */
input:not([type]),
input[type=""],
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"] {
  font-size: 16px;
}
button,
a,
input,
textarea,
summary {
  outline-offset: 4px;
}
button,
summary {
  cursor: pointer;
}
.site-header {
  max-width: 1240px;
  margin: auto;
  padding: 27px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #ebe6da;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 25px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1px;
  margin-top: 4px;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}
nav a[aria-current="page"] {
  color: var(--brown);
  border-bottom: 2px solid var(--brown);
  padding: 10px 0;
}
nav form {
  margin: 0;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 0 36px;
  min-height: 70vh;
}
footer {
  text-align: center;
  font-size: 12px;
  color: #968b7e;
  border-top: 1px solid var(--line);
  padding: 28px;
  margin-top: 72px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -1.7px;
  font-size: 58px;
  line-height: 1.08;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
h3 {
  font-size: 18px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #8a725e;
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
p {
  line-height: 1.6;
}
.small {
  font-size: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--brown);
  border-radius: 7px;
  background: var(--brown);
  color: white;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 44px;
}
.button:hover {
  background: #654d3a;
}
.button.secondary {
  background: transparent;
  color: var(--brown);
  border-color: #d8cebf;
}
.button.secondary:hover {
  background: #eee9df;
}
.button.danger {
  background: #8b443d;
  border-color: #8b443d;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 58px 0 36px;
  gap: 28px;
}
.heading h1 {
  margin: 17px 0;
}
.heading .button {
  margin-bottom: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f1eee6;
  padding: 25px 5px;
}
.stats > div {
  padding: 0 30px;
  border-right: 1px solid #ded7ca;
}
.stats > div:last-child {
  border: 0;
}
.stats strong {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 37px;
  line-height: 1;
}
.stats strong small {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.stats span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.collection {
  margin-top: 46px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.count {
  font-size: 11px;
  background: #eae5db;
  border-radius: 20px;
  padding: 4px 8px;
  vertical-align: middle;
  margin-left: 7px;
}
.search {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search input[type="text"],
.search input:not([type]) {
  min-width: 255px;
  background: transparent;
  margin: 0;
  padding: 11px 13px;
}
.search .button {
  padding: 11px 15px;
}
.coffee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.coffee-card {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.coffee-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px #493a2810;
}
.card-image {
  height: 224px;
  background: #e7e5d8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tone-1 {
  background: #dddccf;
}
.tone-2 {
  background: #e8ddd0;
}
.tone-3 {
  background: #e0e5e0;
}
.tone-0 {
  background: #e6ded8;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bag {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 130px;
  height: 163px;
  background: #f6eedc;
  box-shadow: 8px 9px 12px #382e231c;
  transform: rotate(-6deg);
  border-top: 12px solid #e9dfc9;
  border-bottom: 9px solid #e5dbc6;
  outline: 1px solid #e1d5bd;
  border-radius: 2px;
}
.bag span {
  font-size: 6px;
  letter-spacing: 1px;
}
.bag strong {
  font-family: Georgia, serif;
  font-size: 15px;
  margin-top: 22px;
  max-width: 110px;
  overflow-wrap: anywhere;
  text-align: center;
}
.bag i {
  font-size: 8px;
  margin-top: 17px;
  color: #7a6b57;
}
.favorite {
  position: absolute;
  top: 13px;
  right: 13px;
  border-radius: 50%;
  background: #fffcf4e8;
  padding: 7px 10px;
  color: #8f5540;
}
.card-body {
  padding: 22px;
}
.card-body .eyebrow {
  font-size: 9px;
  letter-spacing: 1.1px;
}
.card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 6px;
}
.card-title h3 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 27px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.rating {
  white-space: nowrap;
  font-size: 12px;
  color: #8b653b;
  padding-top: 4px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.tags span {
  font-size: 10px;
  background: #f0ede5;
  padding: 5px 8px;
  border-radius: 4px;
}
.tasting {
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: #8a7c6c;
  margin-top: 14px;
}
.panel {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
}
.panel h2 {
  margin-bottom: 20px;
}
.panel h3 {
  margin: 24px 0 12px;
}
.empty {
  text-align: center;
  padding: 65px 20px;
}
.empty-icon {
  display: block;
  font-size: 40px;
  margin-bottom: 20px;
}
.empty h2 {
  margin-bottom: 12px;
}
.empty .button {
  margin-top: 24px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 13px;
}
.back {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 30px;
}
.form-heading {
  margin: 35px 0 30px;
}
.form-heading h1 {
  margin: 15px 0;
}
.coffee-form {
  max-width: 850px;
  margin: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.coffee-form > label {
  display: block;
  margin: 25px 0;
}
.coffee-form .checkbox {
  display: flex;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dcd5c9;
  border-radius: 6px;
  background: #fffdfa;
  padding: 12px;
  margin-top: 8px;
  color: #352b25;
}
input[type="file"] {
  font-size: 12px;
}
input[type="checkbox"] {
  accent-color: var(--brown);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
textarea {
  resize: vertical;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.required {
  color: #a35b45;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.coffee-form details,
.panel details {
  border-top: 1px solid var(--line);
  padding: 21px 0;
}
.coffee-form summary {
  font-size: 15px;
}
.coffee-form details .form-grid {
  margin-top: 23px;
}
.photo-preview {
  height: 110px;
  max-width: 100%;
  border-radius: 5px;
}
.login {
  max-width: 470px;
  margin: 70px auto;
  padding: 40px;
}
.login h1 {
  font-size: 48px;
  margin: 20px 0;
}
.login form {
  margin-top: 28px;
}
.full {
  width: 100%;
  margin-top: 20px;
}
.error {
  background: #f8e8e4;
  color: #963e32;
  padding: 13px;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 13px;
}
.success {
  background: #eaf2e9;
  color: #3b6442;
  padding: 12px;
  margin: 16px 0;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 35px 0;
}
.detail-heading h1 {
  margin: 13px 0;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  gap: 10px;
}
.tasting-summary {
  margin: 12px 0;
}
.tasting-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tasting-list li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.tasting-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.tasting-row > div {
  flex: 1;
  min-width: 120px;
}
.tasting-row time {
  font-size: 12px;
  color: var(--muted);
}
.tasting-rating {
  background: #f0ede5;
  border-radius: 4px;
  padding: 6px 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
}
.detail-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
}
.detail-placeholder {
  background: #e6e1d4;
  border-radius: 10px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 60px;
}
.detail-placeholder span {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 17px;
  margin-top: 20px;
  color: #81715e;
}
.rating-panel {
  margin-top: 20px;
}
.rating-panel strong {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  margin-top: 15px;
}
.rating-panel small {
  font-size: 15px;
  color: var(--muted);
}
.detail-sections .panel {
  margin-bottom: 20px;
}
dl {
  margin: 0;
}
dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ebe3;
  font-size: 13px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.delete-link {
  display: inline-block;
  color: #99574d;
  font-size: 12px;
  margin-top: 24px;
}
.narrow {
  max-width: 650px;
  margin: 25px auto;
}
.narrow h1 {
  font-size: 42px;
  margin-bottom: 20px;
}
.connect-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 25px;
}
.connect-grid li {
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 14px;
}
.connect-grid ol {
  padding-left: 20px;
}
.endpoint {
  display: block;
  background: #f2eee6;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 14px;
  margin: 14px 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}
blockquote {
  margin: 12px 0;
  padding: 14px 18px;
  border-left: 2px solid #b7a48c;
  background: #f8f5ef;
  font-family: Georgia, serif;
  font-style: italic;
  line-height: 1.7;
  font-size: 14px;
}
.connect-grid p {
  font-size: 14px;
}
.connect-grid details p {
  margin: 15px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .heading {
    padding-top: 70px;
  }
  .card-image {
    height: 250px;
  }
}
@media (max-width: 1000px) {
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .search input:not([type]) {
    flex: 1;
  }
  .detail-grid {
    grid-template-columns: 280px 1fr;
  }
  .coffee-grid {
    gap: 16px;
  }
  .card-body {
    padding: 17px;
  }
  .card-title h3 {
    font-size: 24px;
  }
  h1 {
    font-size: 50px;
  }
}
@media (max-width: 700px) {
  .site-header {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .brand small {
    font-size: 9px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
  }
  main {
    padding: 0 20px;
  }
  .heading {
    padding-top: 35px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  h1 {
    font-size: 44px;
  }
  .heading p {
    font-size: 13px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 8px;
  }
  .stats > div {
    padding: 16px;
    border: 0;
  }
  .stats strong {
    font-size: 32px;
  }
  .coffee-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .card-image {
    height: 165px;
  }
  .bag {
    transform: rotate(-6deg) scale(0.8);
  }
  .card-body {
    padding: 14px;
  }
  .card-title {
    flex-direction: column;
    gap: 5px;
  }
  .card-title h3 {
    font-size: 23px;
  }
  .card-body .small {
    font-size: 11px;
  }
  .card-body .eyebrow {
    font-size: 8px;
  }
  .tasting {
    font-size: 11px;
  }
  .tags span {
    font-size: 9px;
  }
  .search {
    flex-wrap: wrap;
  }
  .search input:not([type]) {
    min-width: 100%;
    width: 100%;
  }
  .search .button {
    margin-left: auto;
  }
  .toolbar h2 {
    font-size: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 23px;
  }
  .detail-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid aside {
    max-width: 100%;
  }
  .detail-photo {
    max-height: 350px;
  }
  .detail-sections dl div {
    grid-template-columns: 110px 1fr;
  }
  .login {
    margin: 35px auto;
  }
  .login h1 {
    font-size: 43px;
  }
  .narrow h1 {
    font-size: 34px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .button {
    flex: 1;
  }
  .collection {
    margin-top: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
