/* Studio Ancarola */
:root {
  --paper: #f2efe7;
  --ink: #000;
  --rule: #7d7b76;
  --body: "adobe-garamond-pro", "EB Garamond", Garamond, "Times New Roman", serif;
  --display: "Cormorant Garamond", "EB Garamond", Garamond, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* Header and footer nav */
.site-header { padding: 23px 20px 24px; display: flex; justify-content: center; }
.site-header img { width: 364px; height: auto; }
.site-nav {
  margin-top: auto;
  padding: 34px 20px 44px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 9px;
  font-size: 14px; text-transform: uppercase;
}
.site-nav a { text-decoration: none; white-space: nowrap; }
.site-nav a:hover { opacity: .6; }
main { flex: 1 0 auto; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 5px;
  padding: 19px 31px;
  font-family: var(--display); font-weight: 500;
  font-size: 23px; line-height: 1; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: opacity .2s;
}
.button:hover { opacity: .8; }

/* Home */
.home-hero { position: relative; min-height: 420px; overflow: hidden; }
.home-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero__mark { position: absolute; right: 2.3%; top: 50%; transform: translateY(-46%); width: 20.5%; min-width: 110px; }

/* Image and text pages (About, Services) */
.split {
  width: min(1040px, 100% - 40px); margin: 14px auto 0;
  display: grid; grid-template-columns: 415fr 525fr; gap: 0 100px; align-items: center;
}
.split__image img { width: 100%; aspect-ratio: 415 / 581; object-fit: cover; }
.split__text { text-align: center; max-width: 360px; margin: 0 auto; padding-bottom: 60px; }
.split__text p { margin: 0; }
.split__text--left { text-align: left; max-width: none; width: 100%; padding: 0; }
.split__text--left .center { margin-top: 56px; }

/* Accordion */
.accordion { border-top: 1px solid var(--ink); }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 14px 0;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary i { position: relative; flex: 0 0 23px; height: 23px; }
.accordion summary i::before, .accordion summary i::after {
  content: ""; position: absolute; background: var(--ink); transition: transform .25s;
}
.accordion summary i::before { left: 0; right: 0; top: 11px; height: 1px; }
.accordion summary i::after { top: 0; bottom: 0; left: 11px; width: 1px; }
.accordion details[open] summary i::after { transform: scaleY(0); }
.accordion__body { padding: 2px 46px 18px 0; }
.accordion__body p { margin: 0 0 .7em; }

/* Inquiries */
.narrow { width: min(696px, 100% - 40px); margin: 28px auto 0; }
.intro { text-align: center; margin-bottom: 26px; }
.intro p { margin-bottom: .9em; }
.form fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.form legend, .form .field { font-size: 19px; padding: 0; }
.form .field { display: block; margin-bottom: 20px; }
.form em { font-style: normal; font-size: 13px; margin-left: 4px; opacity: .8; }
.form .sub { display: block; font-size: 13px; }
.form .sub em { font-size: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.form .help { display: block; font-size: 13px; line-height: 1.55; margin: 8px 0 2px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  display: block; width: 100%;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; padding: 9px 0;
}
.form textarea { resize: vertical; min-height: 96px; }
.form fieldset input[type=text] + input[type=text] { margin-top: 26px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; font-size: 13px; padding-right: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'%3E%3Cpath d='M1 1l8 8 8-8' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 2px center;
}
.chips { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 12px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; border: 1px solid var(--ink); padding: 3px 10px; font-size: 14px; transition: background .15s, color .15s; }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.error { color: #9b1c1c; font-size: 13px; margin: 8px 0 0; }
.honey { display: none !important; }
.form .button { padding: 21px 14px; }

/* Portfolio request, Subscribe, Thank you */
.signup { text-align: center; width: min(600px, 100% - 40px); margin: 26px auto 0; }
.signup h1 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px; }
.lede { font-size: 17.5px; line-height: 1.55; max-width: 500px; margin: 0 auto 34px; }
.lede--short { max-width: 330px; margin-bottom: 26px; }
.signup__form { display: flex; gap: 14px; align-items: center; justify-content: center; }
.signup__form--stack { flex-direction: column; }
.signup__form input[type=text], .signup__form input[type=email] {
  width: 235px; max-width: 100%; border: 1px solid #e6e3dc; border-radius: 0; background: #fff;
  font: inherit; font-size: 17px; padding: 17px 26px; color: var(--ink);
}
.signup__form input::placeholder { color: #a9a7a2; }
.signup__form .button { padding: 16px 26px; }
.fine { font-size: 13px; line-height: 1.6; max-width: 570px; margin: 34px auto 0; }
.fine--short { max-width: 390px; margin-top: 26px; }

/* Shop */
.shop-page { background: #fff; }
.shop-page .site-nav { margin-top: 0; }
.shop-page::after { content: ""; flex: 1 0 60px; background: var(--paper); }
.shop { position: relative; flex: 0 0 auto; min-height: 718px; display: grid; grid-template-columns: 1fr; place-items: center; overflow: hidden; }
.shop__left { position: absolute; left: 0; top: 0; width: 50%; height: 100%; object-fit: cover; }
.shop__right { position: absolute; right: 0; top: 163px; width: 29.2%; aspect-ratio: 441 / 426; object-fit: cover; border-radius: 50% 50% 0 0 / 52% 52% 0 0; }
.shop__center { position: relative; z-index: 1; width: min(504px, 90%); text-align: center; display: flex; flex-direction: column; align-items: center; padding: 98px 0 60px; }
.shop__script { width: 130px; }
.shop__logo { width: 504px; margin-top: -18px; }
.shop__center h1 { font: 400 17px/1.3 var(--body); text-transform: uppercase; margin: 76px 0 26px; }
.shop__center p { font-size: 17px; max-width: 250px; margin: 0 0 30px; }
.shop__center .button { padding: 20px 55px; font-size: 22px; }

/* Small screens */
@media (max-width: 800px) {
  .site-header img { width: 250px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split__image { max-width: 415px; margin: 0 auto; width: 100%; }
  .split__text { padding-bottom: 0; }
  .home-hero__mark { width: 30%; right: 5%; }
  .form .row { grid-template-columns: 1fr; gap: 16px; }
  .signup__form--inline { flex-direction: column; }
  .site-nav { font-size: 13px; }
  .shop { min-height: 0; }
  .shop__left { position: relative; width: 100%; height: 300px; }
  .shop__right { display: none; }
  .shop__center { padding: 30px 0 40px; }
  .shop__center h1 { margin-top: 40px; }
}
