:root {
    /* Colours */
    --paper: #fff9f1;
    --white: #fff;
    --cream: #fffdf9;
    --green: #434f34;
    --muted: #777184;
    --border: #e9e2d8;
    --border-light: #eee7dc;
    --lavender: #dcd5ff;
    --pink: #f8d7e5;
    --yellow: #f7e8a6;
    --mint: #cdebdd;
    --shadow: #434f3410;

    /* Typography */
    --body-font: Arial, sans-serif;
    --heading-font: Georgia, serif;
    --body-size: 16px;
    --small-size: 13px;
    --label-size: 11px;
    --logo-size: 27px;
    --heading-size: 30px;
    --hero-min: 42px;
    --hero-fluid: 7vw;
    --hero-max: 68px;
    --line-height: 1.6;
    --heading-line-height: 1.15;

    /* Layout and spacing */
    --content-width: 1000px;
    --hero-width: 520px;
    --grid-width: 240px;
    --space-1: 5px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 25px;
    --space-7: 35px;
    --space-8: 50px;
    --space-9: 75px;

    /* Borders and effects */
    --border-width: 1px;
    --radius-small: 5px;
    --radius-medium: 8px;
    --radius-card: 14px;
    --radius-pill: 30px;
    --shadow-blur: 20px;
    --shadow-y: 8px;
    --mobile-width: 650px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--green);
    font: var(--body-size) var(--body-font);
    line-height: var(--line-height);
}

main {
     background-image:
        linear-gradient(var(--white) 1px, transparent 1px),
        linear-gradient(90deg, var(--white) 1px, transparent 1px);
     background-size: 10px 10px;
}

header, main, footer {
    max-width: var(--content-width);
    margin: auto;
    padding: var(--space-3) var(--space-4);
}

header, .feature, footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-5);
}

header, footer { border-color: var(--border); border-style: solid; border-width: 0; }
header { border-bottom-width: var(--border-width); }
footer { border-top-width: var(--border-width); margin-top: var(--space-8); font-size: var(--small-size); }

a { color: inherit; text-decoration: none; }
.logo { font: bold var(--logo-size) var(--heading-font); }

nav, .buttons {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

nav { font-size: var(--small-size); }

h1, h2 {
    font-family: var(--heading-font);
    font-weight: normal;
    line-height: var(--heading-line-height);
}

h1 {
    max-width: var(--hero-width);
    margin: var(--space-4) 0;
    font-size: clamp(var(--hero-min), var(--hero-fluid), var(--hero-max));
}

h2 { font-size: var(--heading-size); }
p { color: var(--muted); }

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-9) 0;
}

.pill {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    background: var(--lavender);
    font-size: var(--label-size);
    letter-spacing: var(--border-width);
}

.buttons { flex-wrap: wrap; margin-top: var(--space-6); }

.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-4);
    border: var(--border-width) solid transparent;
    border-radius: var(--radius-medium);
    background: var(--green);
    color: var(--white);
}

.secondary {
    background: var(--white);
    border-color: var(--border);
    color: var(--green);
}

.art {
    padding: var(--space-7);
    border-radius: 45% 45% var(--radius-medium) var(--radius-medium);
    background: var(--lavender);
    text-align: center;
    transform: rotate(2deg);
}

.paper {
    padding: var(--space-6);
    border-radius: var(--radius-small);
    background: var(--white);
    box-shadow: 0 var(--shadow-y) var(--shadow-blur) var(--shadow);
    transform: rotate(-3deg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-1);
    max-width: var(--grid-width);
    margin: var(--space-5) auto;
}

.grid img{
    height:300px
}

.grid span {
    aspect-ratio: 1;
    border-radius: 3px;
    background: var(--yellow);
}

.grid span:nth-child(3n) { background: var(--mint); }
.grid span:nth-child(4n) { background: var(--pink); }

.section { padding: var(--space-7) 0; }

.feature, .card {
    padding: var(--space-6);
    border: var(--border-width) solid var(--border-light);
    border-radius: var(--radius-card);
    background: var(--cream);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.card:nth-child(6n+1) { background: var(--lavender); }
.card:nth-child(6n+2) { background: var(--mint); }
.card:nth-child(6n+3) { background: var(--yellow); }
.card:nth-child(6n+4) { background: var(--border); }
.card:nth-child(6n+5) { background: var(--cream); }
.card:nth-child(6n+6) { background: var(--pink); }

.shape { font-size: var(--logo-size); }

@media (max-width: 650px) {
    nav { flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
    .hero { grid-template-columns: 1fr; gap: var(--space-7); padding-top: var(--space-8); }
    .feature, footer { align-items: flex-start; flex-direction: column; }
    .cards { grid-template-columns: repeat(2, 1fr); }
}



[contenteditable="true"]:focus {
    outline: 2px dashed #dcd5ff;
    outline-offset: 4px;
}

.component {
    border: 1px dashed #ddd6ca;
    border-radius: 8px;
}

#attr-editor {
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    padding: var(--space-4);
    background: var(--cream);
    color: var(--green);
    box-shadow: 0 8px 30px var(--shadow);
}

#attr-editor input {
    width: 100%;
    margin: var(--space-1) 0;
    padding: var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    font: inherit;
}

#attr-editor::backdrop {
    background: #434f3420;
}

.icon{
  fill: none;
  stroke: red;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
           
}