/*
 * Arco — premium coffee equipment
 * Inter sans-serif, slate/cream/copper palette, warm editorial layout
 */

:root {
  /* colors */
  --background-color: #F5F0E8;
  --light-color: #FFF;
  --dark-color: #5C6B73;
  --text-color: #1C2B35;
  --link-color: #B5651D;
  --link-hover-color: #8E4E14;
  --border-color: #D4CFC5;
  --muted-color: #5C6B73;
  --accent-color: #B5651D;
  --accent-secondary: #D4883A;

  /* fonts */
  --body-font-family: 'Inter', sans-serif;
  --heading-font-family: 'Inter', sans-serif;

  /* body sizes */
  --body-font-size-m: 22px;
  --body-font-size-s: 19px;
  --body-font-size-xs: 17px;

  /* heading sizes */
  --heading-font-size-xxl: 46px;
  --heading-font-size-xl: 37px;
  --heading-font-size-l: 28px;
  --heading-font-size-m: 23px;
  --heading-font-size-s: 20px;
  --heading-font-size-xs: 18px;

  /* effects */
  --border-radius: 12px;
  --card-radius: 12px;
  --shadow-sm: 0 1px 3px rgb(28 43 53 / 6%);
  --shadow-md: 0 4px 20px rgb(28 43 53 / 8%);
  --shadow-lg: 0 12px 40px rgb(28 43 53 / 12%);
  --shadow-xl: 0 20px 60px rgb(28 43 53 / 14%);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* nav height */
  --nav-height: 72px;
}

@media (width >= 900px) {
  :root {
    --body-font-size-m: 18px;
    --body-font-size-s: 16px;
    --body-font-size-xs: 14px;
    --heading-font-size-xxl: 44px;
    --heading-font-size-xl: 36px;
    --heading-font-size-l: 27px;
    --heading-font-size-m: 22px;
    --heading-font-size-s: 19px;
    --heading-font-size-xs: 16px;
    --nav-height: 80px;
  }
}

body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-m);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.appear {
  display: block;
}

header {
  height: var(--nav-height);
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 1em;
  margin-bottom: 0.3em;
  font-family: var(--heading-font-family);
  font-weight: 600;
  line-height: 1.15;
  scroll-margin: 40px;
  letter-spacing: -0.01em;
  color: var(--text-color);
}

h1 { font-size: var(--heading-font-size-xxl); }
h2 { font-size: var(--heading-font-size-xl); }
h3 { font-size: var(--heading-font-size-l); }
h4 { font-size: var(--heading-font-size-m); }
h5 { font-size: var(--heading-font-size-s); }
h6 { font-size: var(--heading-font-size-xs); }

p, dl, ol, ul, pre, blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

code, pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 20px 24px;
  border-radius: var(--border-radius);
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: pre;
}

main > div {
  margin: 40px 16px;
}

input, textarea, select, button {
  font: inherit;
}

/* links — warm accent with smooth transition */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color var(--transition);
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
}

/* buttons — pill-shaped, warm accent fill, soft shadow */
a.button:any-link,
button {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  margin: 12px 0;
  border: 1.5px solid var(--accent-color);
  border-radius: 100px;
  padding: 0.7em 2.2em;
  font-family: var(--body-font-family);
  font-style: normal;
  font-weight: 500;
  font-size: var(--body-font-size-xs);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--accent-color);
  color: var(--light-color);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

a.button:hover,
a.button:focus,
button:hover,
button:focus {
  background-color: var(--link-hover-color);
  color: var(--light-color);
  border-color: var(--link-hover-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

button:disabled,
button:disabled:hover {
  background-color: var(--border-color);
  color: var(--muted-color);
  border-color: var(--border-color);
  transform: none;
  box-shadow: none;
  cursor: unset;
}

a.button.secondary,
button.secondary {
  background-color: transparent;
  border: 1.5px solid var(--text-color);
  color: var(--text-color);
  box-shadow: none;
}

a.button.secondary:hover,
a.button.secondary:focus,
button.secondary:hover,
button.secondary:focus {
  background-color: var(--text-color);
  color: var(--background-color);
  border-color: var(--text-color);
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* sections */
main > .section {
  margin: 48px 0;
}

main > .section > div {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

main > .section:first-of-type {
  margin-top: 0;
}

/* sections with only default content (no blocks) — tighter bottom margin */
main > .section:not(:has(.block)) {
  margin-bottom: 24px;
}

@media (width >= 900px) {
  main > .section:not(:has(.block)) {
    margin-bottom: 32px;
  }
}

/* spacing between blocks within the same section */
main > .section > div > .block {
  margin-bottom: 32px;
}

main > .section > div > .block:last-child {
  margin-bottom: 0;
}

@media (width >= 900px) {
  main > .section > div > .block {
    margin-bottom: 48px;
  }
}

@media (width >= 900px) {
  main > .section {
    margin: 22px 0;
  }

  main > .section > div {
    padding: 0 32px;
  }
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: 0;
  padding: 56px 0;
}

@media (width >= 900px) {
  main .section.light,
  main .section.highlight {
    padding: 80px 0;
  }
}