/* Page content: typography and the blocks the pages use. Loaded on the site
   and in the block editor (where `body` means the editor canvas), so editing
   looks like the result. Layout and the frame are in site.css. */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Sizes, colours and breakpoints follow the original "iggo18" theme
   (Brandstein × Iggo Software, 2018). */
body {
  --primary: #FDCF08;
  --primary-dark: #E4BA02;
  --linkcolor: #AA0F0F;
  --black-primary: rgba(0,0,0,0.87);
  --black-secondary: rgba(0,0,0,0.54);
  --black-disabled: rgba(0,0,0,0.38);
  --white: #FFF;
  --font: "SonnyGothic", "Outfit", Helvetica, Arial, sans-serif;
  --text-large: 16px;
  --text-normal: 14px;
  --text-small: 12px;
  --h1: 15px;
  --h2: 22px;
  --h3: 15px;
  --gridgap: 20px;
  --border-grey: 1px solid rgba(0,0,0,0.12);
  font-family: var(--font); font-size: var(--text-normal); line-height: 1.5; color: var(--black-primary);
  background: var(--primary) url("../images/speckle.svg");
  overflow-wrap: break-word;
}
@media (min-width: 768px) { body { --h1: 16px; --h2: 24px; --h3: 16px; --gridgap: 32px; } }
@media (min-width: 992px) { body { --h1: 18px; --h2: 32px; --h3: 18px; } }
@media (min-width: 1100px) { body { --text-large: 17px; --text-normal: 15px; --text-small: 13px; --h1: 20px; --h2: 40px; --h3: 20px; } }
@media (min-width: 1200px) { body { --h1: 22px; --h2: 48px; --h3: 22px; } }

/* Typography */
h1 { font-size: var(--h1); font-weight: 900; margin: 0 0 20px; line-height: 1.2; text-align: center; }
h2 { font-size: var(--h2); font-weight: 900; margin: 0 0 12px; line-height: 1.1; text-transform: uppercase; }
h3 { font-size: var(--h3); font-weight: 700; margin: 0 0 4px; line-height: 1.2; }
/* The white word in a heading: the editor's text colour "Valkoinen". */
mark.has-inline-color { background: none; }
.has-white-color { color: var(--white); }
p { margin: 0 0 16px; }
small { font-size: 80%; }
a { color: var(--linkcolor); font-weight: bold; text-decoration: none; }
a:hover, a:focus { color: var(--linkcolor); text-decoration: underline; }
ul, ol { margin: 0 0 16px; padding: 0; }
li { margin: 0 0 8px 15px; }
table { border-collapse: collapse; margin: 0; }
td, th { vertical-align: top; padding: 4px 16px 4px 0; text-align: left; border: 0; }
/* WordPress prints its block styles after this file; the doubled class outranks them. */
.wp-block-table.wp-block-table td, .wp-block-table.wp-block-table th { padding: 4px 16px 4px 0; border: 0; }
td p { margin: 0; }
img { max-width: 100%; height: auto; border: 0; }

/* Blocks: the editor's default margins off, the page's own spacing on */
.wp-block-image, .wp-block-table, .wp-block-group { margin: 0 0 16px; }
.wp-block-image img { display: block; }
.wp-block-table table { width: auto; }
.wp-block-table thead { border-bottom: 0; }

/* Sections: a big heading, the banner and groups start a new section */
.page-body > h2:not(:first-child), .page-body > .wp-block-group:not(:first-child),
.page-body > .banner:not(:first-child) { margin-top: var(--gridgap); }
.page-body > .banner { margin-bottom: var(--gridgap); }
.page-body > :last-child, .wp-block-group > :last-child { margin-bottom: 0; }

/* Front page */
.front-image { margin: 0 auto 16px; }
.front-image img { width: 851px; max-width: 100%; margin: 0 auto; }
.home .hours { margin-bottom: 20px; line-height: 1.6; font-size: 17px; }
@media (min-width: 768px) { .home .hours { font-size: 19px; } .front-image { margin-top: 32px; } }

/* "Read more" button */
.button, .wp-block-button__link { display: inline-block; padding: 0 16px; line-height: 26px; background: var(--black-primary); color: var(--primary); text-transform: uppercase; border-radius: 0; font-weight: bold; transition: .16s; }
.button:hover, .button:focus { background: var(--black-secondary); color: var(--primary); text-decoration: none; }
.home .button { padding: 11px 32px; line-height: 22px; }
@media (min-width: 768px) { .button { padding: 0 24px; line-height: 32px; } }

/* Banner photo: grayscale, multiplied onto the yellow like the old slider */
.banner { background: var(--primary); overflow: hidden; }
.banner img { width: 100%; object-fit: cover; filter: grayscale(1); mix-blend-mode: multiply; aspect-ratio: 1440 / 500; }
.banner-low img { aspect-ratio: 1440 / 300; }

/* DJ photos float left of the text */
.wp-block-image.alignleft, .alignleft { float: left; margin: 4px 24px 20px 0; max-width: 50%; }
.dj .alignleft img { width: 195px; }
.dj { overflow: hidden; }
.dj p, .dj-intro.justify p { text-align: justify; }
.offers h3 { margin: 16px 0 8px; }
.offers h3:first-child { margin-top: 0; }
.offers em { font-size: 80%; }

/* Accordion (Info): the editor's "Details" block */
.accordion { border-bottom: var(--border-grey); margin: 0; }
.accordion-group > .accordion:first-child { border-top: var(--border-grey); }
.accordion > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) 24px; align-items: center; padding: 10px 0; font-size: var(--text-large); font-weight: bold; color: var(--black-primary); }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: ""; justify-self: end; width: 9px; height: 9px; margin-right: 6px; border: solid var(--black-disabled); border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); transition: transform .16s; }
.accordion > summary:hover::after { border-color: var(--black-secondary); }
.accordion[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.accordion > :last-child:not(summary) { margin-bottom: 16px; }
.accordion td:first-child { white-space: nowrap; }

/* Price list (Ruoka): a table with the dish (name + description) and the price */
.group-desc { margin-bottom: 8px; }
.pricelist { margin-bottom: var(--gridgap); }
.pricelist table { width: 100%; }
.wp-block-table.pricelist.pricelist td { padding: 6px 0; border-bottom: 1px solid var(--black-primary); }
.wp-block-table.pricelist.pricelist tr:first-child td { border-top: 1px solid var(--black-primary); }
.pricelist td:last-child { width: 65px; text-align: right; font-weight: bold; white-space: nowrap; }
.pricelist em { display: block; font-size: var(--text-small); color: var(--black-secondary); line-height: 1.2; }
.center { text-align: center; }

/* Contact details shown instead of the old WordPress forms */
.contact-box { border-top: 1px solid var(--black-primary); border-bottom: 1px solid var(--black-primary); padding: 16px 0; }
