@import "./fonts.css";

:root {
  color-scheme: light;
  --green: #15332a;
  --red: #aa1831;
  --paper: #f1ebde;
  --white: #fbf8f1;
  --line: #c9c5b4;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--green); background: var(--white); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b45725; outline-offset: 4px; }
p { margin: 0 0 1rem; }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; margin: 0 0 .55em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.55rem; }
em { color: var(--red); }
.wrap { width: min(1160px, 100% - 96px); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); z-index: 5; padding: .55rem 1rem; background: white; color: var(--green); }
.skip:focus { transform: none; }
.eyebrow { font: .875rem/1.55 var(--mono); letter-spacing: .12em; }
.eyebrow span, .red { color: var(--red); }
.paper { background: radial-gradient(#15332a13 .55px, transparent .72px), var(--paper); background-size: 4px 4px; }

.header { color: var(--white); background: var(--green); }
.header::after, .footer::before { display: block; height: 7px; content: ""; background: repeating-linear-gradient(132deg, #f4ecdc 0 10px, #b61d36 10px 28px, #f4ecdc 28px 38px, #21473a 38px 56px); }
.nav-layout { display: flex; align-items: center; justify-content: space-between; min-height: 81px; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.wordmark strong, .wordmark small { display: block; }
.wordmark strong { font: 1.38rem/1 var(--serif); }
.wordmark small { font: .7rem/1.45 var(--mono); letter-spacing: .13em; margin-top: .25rem; color: #ece2cf; }
.brand-icon { border: 1px solid #dcd3bb90; border-radius: 50%; display: grid; place-items: center; width: 39px; height: 39px; }
.brand-icon svg { width: 20px; height: 20px; }
nav { display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; align-items: center; }
nav a { font-size: .9rem; color: var(--white); text-decoration: none; padding: .4rem 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current] { border-color: #e6c893; }
.menu-button { display: none; }

.hero { overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 520px; gap: 12px; padding-block: 50px 54px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(5rem, 9.5vw, 9.05rem); line-height: .81; letter-spacing: -.052em; margin: .28em 0 .29em -.035em; }
.hero h1 em { display: inline-block; margin-top: .075em; }
.hero-intro { max-width: 385px; font-size: 1.1rem; line-height: 1.5; margin-bottom: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1.06rem; min-height: 44px; color: white; background: var(--red); border: 1px solid var(--red); border-radius: 2px; text-decoration: none; font-weight: 700; font-size: .95rem; text-align: center; line-height: 1.3; }
.button:hover { background: #801227; border-color: #801227; }
.button.outline { background: transparent; border-color: var(--green); color: var(--green); }
.button.outline:hover { background: #15332a0d; border-color: var(--green); }

.hero-art { position: relative; aspect-ratio: 1.23; width: 100%; isolation: isolate; }
.envelope { position: absolute; inset: 20% 3% 12% 19%; background: #cabc9e; transform: rotate(12deg); border: 1px solid #a99b7e; box-shadow: 0 18px 32px #3b261c24; }
.envelope::after { position: absolute; inset: 0; content: ""; background: repeating-linear-gradient(130deg,#e9ddc5 0 10px,#b33d47 10px 21px,#e9ddc5 21px 30px,#355e4a 30px 42px); clip-path: polygon(0 0,100% 0,100% 100%,0 100%,0 0,2% 3%,2% 97%,98% 97%,98% 3%,2% 3%); }
.postcard { position: absolute; inset: 11% 9% 22% 11%; transform: rotate(-8deg); padding: 5%; color: var(--green); border: 1px solid #d4c9ae; box-shadow: 0 15px 24px #37261b2e; background: radial-gradient(#15332a15 .55px, transparent .75px), #f8f2e4; background-size: 4px 4px; }
.postcard-label { position: absolute; left: 7%; top: 9%; color: var(--red); font: clamp(.61rem, 1.05vw, .83rem)/1.45 var(--mono); letter-spacing: .095em; }
.postcard-star { position: absolute; top: 28%; left: 7%; width: 5%; color: var(--red); }
.postcard-caption { position: absolute; left: 7%; top: 37%; font: clamp(1.3rem, 3.3vw, 3.45rem)/.91 var(--serif); letter-spacing: -.04em; }
.stamp { position: absolute; width: 33%; top: 5%; right: 5%; mix-blend-mode: multiply; transform: rotate(3deg); }
.address-lines { position: absolute; width: 25%; height: 13%; top: 67%; right: 9%; background: repeating-linear-gradient(transparent 0 31%, #33534560 32% 36%, transparent 37% 50%); }
.ticket { width: 72%; position: absolute; bottom: 4%; right: -1%; transform: rotate(7deg); box-shadow: 0 11px 25px #291b1348; border: 1px solid #cec2a8; }
.seal { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .08rem; position: absolute; border: 2px solid; border-radius: 50%; width: 100px; aspect-ratio: 1; color: #244a3d; transform: rotate(-14deg); }
.seal::after { content: ""; position: absolute; inset: 6px; border: 1px solid; border-radius: 50%; }
.seal span { font: .63rem/1.2 var(--mono); letter-spacing: .09em; }
.seal b { font: 1.75rem/.97 var(--serif); }
.hero-art .seal { bottom: 5%; left: 2%; background: #efe7d5; box-shadow: 0 4px 10px #46382119; }

.quick { background: var(--green); color: var(--white); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 30px 32px; }
.quick article { display: flex; gap: .95rem; padding: .15rem 1.25rem; border-left: 1px solid #e5dbc050; }
.quick article:first-child { border: 0; padding-left: 0; }
.quick article:last-child { padding-right: 0; }
.quick h2 { font-size: 1.62rem; margin: 0 0 .35rem; }
.quick p { color: #f1ead8; margin-bottom: .45rem; }
.quick a { color: #f0d29b; font-weight: 700; }
.icon { display: grid; width: 39px; height: 39px; place-items: center; flex: 0 0 39px; border: 1px solid #e5dbc080; border-radius: 50%; color: #f0d29b; }
.icon svg { width: 20px; height: 20px; }

.section { padding-block: clamp(45px, 6vw, 90px); }
.feature { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(1.25rem, 6vw, 7rem); }
.feature h2 { font-size: clamp(2.65rem, 6vw, 5.2rem); letter-spacing: -.035em; }
.feature p { max-width: 490px; }
.feature figure { margin: 0; max-width: 264px; justify-self: center; transform: rotate(4deg); box-shadow: 0 12px 27px #37261b2d; }

.page-hero .wrap { position: relative; padding-block: 48px 45px; padding-right: 116px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); letter-spacing: -.042em; margin-bottom: .22em; }
.page-hero p:last-of-type { margin-bottom: 0; font-size: 1.09rem; }
.page-hero .seal { top: 50%; right: 0; transform: translateY(-50%) rotate(-14deg); }
.narrow { max-width: 850px; }
.document h2 { margin-bottom: .4em; font-size: 2.25rem; }
.document h2:not(:first-child) { margin-top: 1.25em; }
.rules-layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 46rem); justify-content: center; align-items: start; gap: clamp(1.5rem, 5vw, 4.5rem); }
.rules-index { position: sticky; top: 1.25rem; }
.rules-index nav { display: block; border: 1px solid var(--line); border-top: 3px solid var(--red); background: #f3ede0; padding: 1.1rem 1.15rem; }
.rules-index h2 { font-size: 1.4rem; margin-bottom: .65rem; }
.rules-index ul { list-style: none; margin: 0; padding: 0; }
.rules-index a { display: block; color: var(--green); padding: .4rem 0; border-bottom: 1px solid transparent; font-size: .95rem; }
.rules-index a:hover { border-bottom-color: var(--line); }
.rules-text { font-size: 1.05rem; line-height: 1.7; }
.rules-text section { padding: 0 0 1.5rem; scroll-margin-top: 1.25rem; }
.rules-text section + section { border-top: 1px solid var(--line); padding-top: 1.55rem; }
.rules-text section:last-child { padding-bottom: 0; }
.rules-text h2 { font-size: clamp(1.85rem, 3.3vw, 2.7rem); margin-bottom: .6rem; }
.rules-text h3 { margin-top: 1.45rem; }
.rules-text ul { margin: .5rem 0 0; padding-left: 1.22rem; }
.rules-text li + li { margin-top: .55rem; }
.rules-text section > :last-child { margin-bottom: 0; }
.rules-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; list-style: none; margin: .9rem 0 1.35rem; padding: 0; }
.rules-prizes li, .rules-prizes li + li { display: grid; gap: .13rem; margin: 0; padding: .7rem .8rem; border: 1px solid var(--line); background: #f3ede0; }
.rules-prizes span { font-size: .89rem; }
.rules-prizes strong { font: clamp(1.4rem, 3vw, 1.85rem)/1.15 var(--serif); color: var(--red); }
.invoice-details { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; width: fit-content; margin: .55rem 0 .75rem; padding: .55rem .8rem; border-left: 2px solid var(--line); }
.invoice-details dt { font-weight: 700; }
.invoice-details dd { margin: 0; }

.notice { border: 1px solid var(--line); border-left: 4px solid var(--red); background: #f3ede0; padding: 1.25rem 1.45rem; }
.notice h2 { font-size: 1.75rem; margin: 0 0 .35rem; }
.notice p:last-child { margin-bottom: 0; }
.directory-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.directory-head h2 { margin: 0; }
.merchant-form { margin-top: 1.25rem; }
.team-login { max-width: 24rem; }
[data-registration-result]:empty { display: none; }

.filters, .field-grid { display: grid; gap: 1rem; }
.filters { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; margin-bottom: 1rem; }
.merchant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; }
.merchant { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 2.2vw, 1.4rem); border: 1px solid #ded8ca; border-radius: 5px; background: #fffdf7; }
.merchant h3 { margin: .35rem 0 .45rem; font-size: clamp(1.3rem, 2.3vw, 1.72rem); line-height: 1.14; overflow-wrap: anywhere; }
.merchant-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .65rem; color: #4e5f55; font-size: .88rem; margin: 0; }
.merchant-area { font-weight: 700; color: var(--green); background: #e8ece1; padding: .16rem .58rem; border-radius: 999px; }
.merchant-address { color: #41554b; margin: 0 0 .85rem; overflow-wrap: anywhere; }
.merchant-actions { width: 100%; display: flex; flex-wrap: wrap; gap: .4rem .8rem; justify-content: space-between; align-items: center; border-top: 1px solid #e7e1d5; margin-top: auto; padding-top: .58rem; }
.merchant-email { min-width: 0; display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: .91rem; text-decoration-color: #839489; overflow-wrap: anywhere; }
.merchant-map-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .25rem .65rem; background: #eff0e7; border: 1px solid #e0e4d9; border-radius: 3px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.merchant-map-link:hover { background: #e2e8db; border-color: #aab8a8; }
.directory-map { margin-bottom: 1.2rem; }
.directory-map iframe { display: block; width: 100%; height: 340px; border: 1px solid var(--line); }
.draw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.prize { border: 1px solid var(--line); padding: 1.5rem; }
.prize h2 { font-size: clamp(3.25rem, 7vw, 6rem); letter-spacing: -.04em; margin: 0 0 .08em; }
.prize p:last-child { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 2rem); }
.contact-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 4px; background: #fffdf7; overflow: hidden; }
.contact-details { padding: clamp(1.2rem, 3.2vw, 2.4rem); display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.contact-details h2 { font-size: clamp(2rem, 3.7vw, 2.9rem); }
.contact-details address { font-style: normal; color: #41554b; }
.contact-details ul { list-style: none; margin: .8rem 0 1.2rem; padding: 0; overflow-wrap: anywhere; }
.contact-details .button { margin-top: auto; }
.contact-map { border-top: 1px solid var(--line); background: #eee9de; }
.contact-map iframe { display: block; width: 100%; height: clamp(210px, 29vw, 285px); border: 0; }
.field-optional { font-weight: 400; }
.mail-form { display: grid; justify-items: start; gap: 1rem; }
.mail-form > label:not(.check), .field-grid { width: 100%; }
.field-grid { grid-template-columns: 1fr 1fr; }
label { font-weight: 700; font-size: .95rem; display: block; }
input:not([type="checkbox"],[type="radio"]), select, textarea { display: block; width: 100%; appearance: none; background: white; color: var(--green); border: 1px solid #a8aa99; border-radius: 2px; padding: .66rem .75rem; margin-top: .3rem; font-weight: 400; font-size: 1rem; }
select { padding-right: 2rem; background: linear-gradient(45deg,transparent 50%,var(--green) 50%) calc(100% - 15px) 51% / 5px 5px no-repeat, linear-gradient(135deg,var(--green) 50%,transparent 50%) calc(100% - 10px) 51% / 5px 5px no-repeat, white; }
textarea { resize: vertical; }
fieldset { width: 100%; border: 1px solid var(--line); padding: .65rem .95rem .85rem; }
legend { font-weight: 700; padding-inline: .3rem; }
.check { display: flex; align-items: baseline; gap: .45rem; font-weight: 400; }
.check input { accent-color: var(--green); }
fieldset a { display: inline-block; margin-top: .4rem; }
.form-status, .small { font-size: .9rem; margin: 0; }
.form-status { border-left: 3px solid var(--green); padding-left: .7rem; }

.footer { background: var(--green); color: var(--white); }
.footer-layout { display: grid; grid-template-columns: 1.05fr .65fr 1.35fr 1fr; gap: 1.2rem; padding-block: 2.25rem; }
.footer .eyebrow { color: #f0d29b; margin-bottom: .55rem; }
.footer-layout a { display: block; width: fit-content; margin-bottom: .2rem; }
.footer-layout img { width: 210px; }
.footer-mealhada ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.footer-mealhada a { margin: 0; padding: .35rem .55rem; border: 1px solid #e5dbc059; border-radius: 3px; text-decoration: none; font-size: .9rem; }
.footer-mealhada a:hover { background: #ffffff15; border-color: #e5dbc0; }

.footer-end { padding-block: .8rem; border-top: 1px solid #e5dbc050; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; font-size: .86rem; }
.footer-end small { font-size: inherit; }

@media (max-width: 940px) {
  .wrap { width: min(100% - 56px, 1160px); }
  .nav-layout { gap: .8rem; }
  nav { gap: .1rem .8rem; }
  nav a { font-size: .84rem; }
  .hero-layout { min-height: 440px; }
  .quick article { gap: .6rem; padding-inline: .75rem; }
}
@media (max-width: 760px) {
  .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .rules-layout { grid-template-columns: minmax(0, 1fr); }
  .rules-index { position: static; }
  .rules-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .85rem; }

  .wrap { width: calc(100% - 36px); }
  .nav-layout { min-height: 65px; flex-wrap: wrap; gap: .6rem; padding-block: .63rem; }
  .wordmark { flex-shrink: 1; min-width: 0; }
  .brand-icon { flex: 0 0 39px; }
  .menu-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-width: 92px;
    min-height: 44px;
    color: var(--white);
    background: #ffffff0d;
    border: 1px solid #e6dbc085;
    border-radius: 4px;
    padding: .5rem .7rem;
    font-weight: 700;
  }
  .menu-button[aria-expanded="true"] { background: #f0d29b; border-color: #f0d29b; color: var(--green); }
  .menu-icon { position: relative; display: block; width: 16px; height: 14px; }
  .menu-icon::before, .menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .menu-icon::before { top: 2px; box-shadow: 0 5px currentColor; }
  .menu-icon::after { bottom: 0; }
  .menu-button[aria-expanded="true"] .menu-icon::before { top: 6px; transform: rotate(45deg); box-shadow: none; }
  .menu-button[aria-expanded="true"] .menu-icon::after { top: 6px; transform: rotate(-45deg); }
  #navigation {
    display: grid;
    width: 100%;
    gap: .35rem;
    padding: .6rem 0 .25rem;
    border-top: 1px solid #e5dbc050;
  }
  #navigation a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: .63rem .85rem;
    border: 1px solid #e5dbc04d;
    border-radius: 4px;
    background: #ffffff0a;
    font-size: 1rem;
  }
  #navigation a:hover { background: #ffffff1c; }
  #navigation a[aria-current="page"] { background: #f0d29b; border-color: #f0d29b; color: var(--green); font-weight: 700; }
  #navigation a:focus-visible, .menu-button:focus-visible { outline-color: #f0d29b; outline-offset: 2px; }
  .menu-button:not([hidden])[aria-expanded="false"] + #navigation { display: none; }
  .hero-layout { grid-template-columns: 1fr .8fr; padding-block: 36px; min-height: 0; }
  .hero h1 { font-size: clamp(4rem, 12vw, 6.5rem); }
  .hero-intro { font-size: 1rem; }
  .hero-art .seal { width: 72px; bottom: 2%; }
  .seal b { font-size: 1.35rem; }
  .seal span { font-size: .58rem; }
  .quick-grid { grid-template-columns: 1fr; padding-block: .3rem; }
  .quick article, .quick article:first-child, .quick article:last-child { border: 0; padding: .95rem 0; gap: .85rem; }
  .quick article + article { border-top: 1px solid #e5dbc050; }
  .quick p { margin-bottom: .28rem; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .rules-prizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-index a { min-height: 44px; display: flex; align-items: center; }

  .hero-layout { grid-template-columns: 1fr; gap: .45rem; padding-bottom: 13px; }
  .hero h1 { font-size: clamp(4rem, 16vw, 6.4rem); }
  .hero-art { width: min(94%, 365px); justify-self: center; aspect-ratio: 1.47; }
  .postcard-caption { top: 31%; font-size: clamp(1.4rem, 5.7vw, 2.6rem); }
  .postcard-star { display: none; }
  .postcard-label { font-size: .65rem; }
  .ticket { width: 61%; bottom: 2%; right: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature figure { max-width: 190px; }
  .directory-head { flex-wrap: wrap; }
  .page-hero .wrap { padding-block: 35px; padding-right: 0; }
  .page-hero .seal { display: none; }
  .draw-grid, .contact-grid, .field-grid, .filters, .merchant-list { grid-template-columns: 1fr; }
  .footer-layout > :first-child, .footer-mealhada { grid-column: 1 / -1; }
  .footer-mealhada { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.submission-dialog { width: min(100% - 2rem, 32rem); padding: 1.75rem; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 4px; color: var(--green); background: #fffdf7; }
.submission-dialog::backdrop { background: #15332a99; }
.submission-dialog h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
.submission-dialog p { margin-bottom: 1rem; }
